Update of /cvsroot/objecthandler/ObjectHandler/Examples/C++
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv18276/Examples/C++
Modified Files:
account.cpp account.hpp
Log Message:
instanceName -> objectID
Index: account.hpp
===================================================================
RCS file: /cvsroot/objecthandler/ObjectHandler/Examples/C++/account.hpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** account.hpp 9 Jun 2006 18:58:27 -0000 1.2
--- account.hpp 4 Oct 2006 09:37:43 -0000 1.3
***************
*** 53,65 ****
public:
AccountValueObject(
! const std::string &instanceName,
const int &accountNumber,
const std::string &accountType)
! : instanceName_(instanceName), accountNumber_(accountNumber), accountType_(accountType) {}
std::vector<std::string> getPropertyNames() const;
boost::any getProperty(const std::string& name) const;
protected:
static const char* mPropertyNames[];
! std::string instanceName_;
int accountNumber_;
std::string accountType_;
--- 53,65 ----
public:
AccountValueObject(
! const std::string &objectID,
const int &accountNumber,
const std::string &accountType)
! : objectID_(objectID), accountNumber_(accountNumber), accountType_(accountType) {}
std::vector<std::string> getPropertyNames() const;
boost::any getProperty(const std::string& name) const;
protected:
static const char* mPropertyNames[];
! std::string objectID_;
int accountNumber_;
std::string accountType_;
Index: account.cpp
===================================================================
RCS file: /cvsroot/objecthandler/ObjectHandler/Examples/C++/account.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** account.cpp 9 Jun 2006 18:58:27 -0000 1.2
--- account.cpp 4 Oct 2006 09:37:43 -0000 1.3
***************
*** 35,39 ****
const char* AccountValueObject::mPropertyNames[] = {
! "instanceName",
"accountNumber",
"accountType"};
--- 35,39 ----
const char* AccountValueObject::mPropertyNames[] = {
! "objectID",
"accountNumber",
"accountType"};
***************
*** 45,49 ****
boost::any AccountValueObject::getProperty(const std::string& name) const {
! if(name == "instanceName") return instanceName_;
else if(name == "accountNumber") return accountNumber_;
else if(name == "accountType") return accountType_;
--- 45,49 ----
boost::any AccountValueObject::getProperty(const std::string& name) const {
! if(name == "objectID") return objectID_;
else if(name == "accountNumber") return accountNumber_;
else if(name == "accountType") return accountType_;
|