[ObjectHandler-cvs] ObjectHandler/Examples/xl addinstatic.cpp, 1.7, 1.8
Brought to you by:
ericehlers,
nando
From: Eric E. <eri...@us...> - 2006-06-11 12:38:25
|
Update of /cvsroot/objecthandler/ObjectHandler/Examples/xl In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv20729/Examples/xl Modified Files: addinstatic.cpp Log Message: - allow nesting of QL & non-QL functions - support for permanent objects Index: addinstatic.cpp =================================================================== RCS file: /cvsroot/objecthandler/ObjectHandler/Examples/xl/addinstatic.cpp,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** addinstatic.cpp 9 Jun 2006 18:58:27 -0000 1.7 --- addinstatic.cpp 11 Jun 2006 12:38:21 -0000 1.8 *************** *** 43,47 **** Excel(xlfRegister, 0, 7, &xDll, TempStrNoSize("\x0D""createAccount"), // function code name ! TempStrNoSize("\x05""CCNC#"), // parameter codes TempStrNoSize("\x0D""createAccount"), // function display name TempStrNoSize("\x26""instanceName,accountNumber,accountType"), // comma-delimited list of parameters --- 43,47 ---- Excel(xlfRegister, 0, 7, &xDll, TempStrNoSize("\x0D""createAccount"), // function code name ! TempStrNoSize("\x06""CCNCP#"), // parameter codes TempStrNoSize("\x0D""createAccount"), // function display name TempStrNoSize("\x26""instanceName,accountNumber,accountType"), // comma-delimited list of parameters *************** *** 82,90 **** char *instanceName, long *accountNumber, ! char *accountType) { boost::shared_ptr < ObjHandler::FunctionCall > functionCall; try { functionCall = boost::shared_ptr < ObjHandler::FunctionCall > ( new ObjHandler::FunctionCall("createAccount") ); boost::shared_ptr < ObjHandler::Object > objectPointer(new AccountObject( *accountNumber, --- 82,95 ---- char *instanceName, long *accountNumber, ! char *accountType, ! OPER *permanent) { boost::shared_ptr < ObjHandler::FunctionCall > functionCall; try { functionCall = boost::shared_ptr < ObjHandler::FunctionCall > ( new ObjHandler::FunctionCall("createAccount") ); + + bool permanentCpp; + ObjHandler::operToScalar( permanentCpp, *permanent, false ); + boost::shared_ptr < ObjHandler::Object > objectPointer(new AccountObject( *accountNumber, *************** *** 93,96 **** --- 98,102 ---- boost::shared_ptr<ObjHandler::ValueObject>( new AccountValueObject(instanceName, *accountNumber, accountType))); + objectPointer->setPermanent(permanentCpp); const std::string returnValue = |