Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members

Utils.h

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

Generated on Fri Nov 12 07:43:30 2004 for Eris by  doxygen 1.3.9.1