Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

Utils.h

00001 #ifndef ERIS_UTILS_H
00002 #define ERIS_UTILS_H
00003 
00004 #include <Atlas/Message/Object.h>
00005 #include <Atlas/Objects/Operation/RootOperation.h>
00006 
00007 #include <Eris/Types.h>
00008 
00009 namespace Eris
00010 {
00011 
00012 // operation un-packing helpers
00013 
00015 const Atlas::Message::Object&
00016 getArg(const Atlas::Objects::Operation::RootOperation &op, unsigned int i);     
00017 
00019 const Atlas::Message::Object&
00020 getArg(const Atlas::Objects::Operation::RootOperation &op, const std::string &nm);
00021 
00023 bool hasArg(const Atlas::Objects::Operation::RootOperation &op, const std::string &nm); 
00024         
00025 const Atlas::Message::Object&
00026 getMember(const Atlas::Message::Object &obj, unsigned int i);   
00027 
00028 const Atlas::Message::Object&
00029 getMember(const Atlas::Message::Object &obj, const std::string &nm);    
00030         
00031 bool hasMember(const Atlas::Message::Object &obj, const std::string &nm);       
00032         
00033 // inheritance checks /////////////////////////
00034 
00036 StringSet getParentsAsSet(const Atlas::Objects::Root &obj);
00037 
00039 
00042 //bool checkInherits(const Atlas::Objects::Root &obj, const std::string &cid);
00043 // bool CheckInherits(const Atlas::Message::Object &obj, const string &cid);
00044 
00045 // operation serial number sequencing
00046 long getNewSerialno();
00047 
00051 const std::string objectSummary(const Atlas::Objects::Root &obj);
00052 
00053 }
00054 
00055 #endif

Generated on Thu May 22 08:01:05 2003 for Eris by doxygen1.3-rc3