// Note: Instrumentation statements are highlighted in green

#include "MiscellaneousInfo.hpp"
#include "string_io.hpp"

///////////////////////////////////////////////////////////////////////////////
// MiscellaneousInfo class
///////////////////////////////////////////////////////////////////////////////

// Visual Member Definition
VISIBILITY_START(MiscellaneousInfo, "Miscellaneous Info.", 6)
VVARIABLE(MiscellaneousInfo, notes, "Notes", 0, 0)
VVARIABLE(MiscellaneousInfo, groupMembership, "Group membership", 0, 0)
VVARIABLE(MiscellaneousInfo, folderLocation, "Folder location", 0, 0)
VVOID_FUNCTION(MiscellaneousInfo, clear, "Clear", 0, 0)
VISIBILITY_END

MiscellaneousInfo::MiscellaneousInfo(void)
{
}

MiscellaneousInfo::MiscellaneousInfo(const MiscellaneousInfo & that)
{
  *this = that;
}

MiscellaneousInfo::~MiscellaneousInfo(void)
{
}

MiscellaneousInfo & MiscellaneousInfo::operator =(const MiscellaneousInfo & that)
{
  if (this != &that) {
    notes = that.notes;
    groupMembership = that.groupMembership;
    folderLocation = that.folderLocation;
  }
  return *this;
}

std::ostream & operator<< (std::ostream& os, MiscellaneousInfo & out_obj)
{
  write_string(os, out_obj.notes);
  write_string(os, out_obj.groupMembership);
  write_string(os, out_obj.folderLocation);
  return os;
}

std::istream & operator>> (std::istream & is, MiscellaneousInfo & in_obj)
{
  read_string(is, in_obj.notes);
  read_string(is, in_obj.groupMembership);
  read_string(is, in_obj.folderLocation);
  return is;
}

void MiscellaneousInfo::clear(void)
{
  notes = "";
  groupMembership = "";
  folderLocation = "";
}

void MiscellaneousInfo::populateEditView(void)
{
  notes = "This is a note";
  groupMembership = "Order of the Elks; Free mason";
  folderLocation = "Default folder";
}

Copyright 2002-2007 Outerface Technologies, Inc.