Update of /cvsroot/simspark/simspark/spark/zeitgeist
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4526
Modified Files:
class.h class.cpp
Log Message:
- made TCommandMap public
- added method GetCommandMap that returns the map of registered functions
- added method GetBundle that returns the bundle associated with this class
Index: class.cpp
===================================================================
RCS file: /cvsroot/simspark/simspark/spark/zeitgeist/class.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** class.cpp 5 Dec 2005 20:59:18 -0000 1.1
--- class.cpp 22 Jan 2006 12:14:57 -0000 1.2
***************
*** 132,135 ****
--- 132,140 ----
}
+ const Class::TCommandMap& Class::GetCommandMap() const
+ {
+ return mFunctions;
+ }
+
Class::TCmdProc Class::GetCmdProc(const std::string &functionName) const
{
***************
*** 219,220 ****
--- 224,230 ----
return false;
}
+
+ boost::shared_ptr<salt::SharedLibrary> Class::GetBundle() const
+ {
+ return mBundle;
+ }
Index: class.h
===================================================================
RCS file: /cvsroot/simspark/simspark/spark/zeitgeist/class.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** class.h 5 Dec 2005 20:59:18 -0000 1.1
--- class.h 22 Jan 2006 12:14:57 -0000 1.2
***************
*** 152,159 ****
typedef std::list<std::string> TStringList;
- private:
- /** defines a list of pointers to object instances */
- typedef std::list< boost::weak_ptr<Object> > TObjectList;
-
/** defines a mapping from member names to command procedures */
#ifdef HAVE_HASH_MAP
--- 152,155 ----
***************
*** 163,166 ****
--- 159,167 ----
#endif
+ private:
+ /** defines a list of pointers to object instances */
+ typedef std::list< boost::weak_ptr<Object> > TObjectList;
+
+
//
// functions
***************
*** 197,200 ****
--- 198,207 ----
bool SupportsCommand(const std::string &name) const;
+ /** returns the command map of this class */
+ const TCommandMap& GetCommandMap() const;
+
+ /** a shared pointer to the bundle, this class object came from */
+ boost::shared_ptr<salt::SharedLibrary> GetBundle() const;
+
protected:
/** adds an instance to the local list of instances */
|