BESDefine.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033 #ifndef BESDefine_h_
00034 #define BESDefine_h_ 1
00035
00036 #include <string>
00037 #include <list>
00038
00039 using std::string ;
00040 using std::list ;
00041
00042 #include "BESObj.h"
00043 #include "BESContainer.h"
00044
00045 class BESDefine : public BESObj
00046 {
00047 private:
00048 list<BESContainer *> _containers ;
00049 string _agg_cmd ;
00050 string _agg_handler ;
00051 public:
00052 BESDefine() {}
00053 virtual ~BESDefine() ;
00054
00055 typedef list<BESContainer *>::iterator containers_iter ;
00056 typedef list<BESContainer *>::const_iterator containers_citer ;
00057
00058 void add_container( BESContainer *container ) ;
00059 BESDefine::containers_citer first_container() { return _containers.begin() ; }
00060 BESDefine::containers_citer end_container() { return _containers.end() ; }
00061
00062 void set_agg_cmd( const string &cmd )
00063 {
00064 _agg_cmd = cmd ;
00065 }
00066 const string & get_agg_cmd()
00067 {
00068 return _agg_cmd ;
00069 }
00070 void set_agg_handler( const string &handler )
00071 {
00072 _agg_handler = handler ;
00073 }
00074 const string & get_agg_handler()
00075 {
00076 return _agg_handler ;
00077 }
00078
00079 virtual void dump( ostream &strm ) const ;
00080 } ;
00081
00082 #endif // BESDefine_h_
00083