52 i = _def_list.find( def_name ) ;
53 if( i != _def_list.end() )
73 _def_list[def_name] = d ;
92 i = _def_list.find( def_name ) ;
93 if( i != _def_list.end() )
96 _def_list.erase( i ) ;
110 while( _def_list.size() != 0 )
112 Define_iter di = _def_list.begin() ;
114 _def_list.erase( di ) ;
136 map<string,string> dprops ;
137 map<string,string> cprops ;
138 map<string,string> aprops ;
139 Define_citer di = _def_list.begin() ;
140 Define_citer de = _def_list.end() ;
141 for( ; di != de; di++ )
143 string def_name = (*di).first ;
147 dprops[
"name"] = def_name ;
148 info.
begin_tag(
"definition", &dprops ) ;
152 for( ; ci != ce; ci++ )
155 string sym = (*ci)->get_symbolic_name() ;
156 cprops[
"name"] = sym ;
158 string real = (*ci)->get_real_name() ;
159 string type = (*ci)->get_container_type() ;
160 cprops[
"type"] = type ;
161 string con = (*ci)->get_constraint() ;
164 cprops[
"constraint"] = con ;
166 string attrs = (*ci)->get_attributes() ;
169 cprops[
"attributes"] = attrs ;
171 info.
add_tag(
"container", real, &cprops ) ;
196 << (
void *)
this <<
")" << endl ;
199 if( _def_list.size() )
203 Define_citer di = _def_list.begin() ;
204 Define_citer de = _def_list.end() ;
205 for( ; di != de; di++ )
207 (*di).second->dump( strm ) ;
virtual bool add_definition(const string &def_name, BESDefine *d)
adds a given definition to this volatile storage
virtual void dump(ostream &strm) const
dumps information about this object
virtual BESDefine * look_for(const string &def_name)
looks for a definition in this volatile store with the given name
virtual bool del_definition(const string &def_name)
deletes a defintion with the given name from this volatile store
virtual void add_tag(const string &tag_name, const string &tag_data, map< string, string > *attrs=0)=0
const string & get_agg_cmd()
BESDefine::containers_citer end_container()
informational response object
virtual void show_definitions(BESInfo &info)
show the defintions stored in this store
virtual void begin_tag(const string &tag_name, map< string, string > *attrs=0)
static ostream & LMarg(ostream &strm)
BESDefine::containers_citer first_container()
virtual bool del_definitions()
deletes all defintions from the definition store
list< BESContainer * >::const_iterator containers_citer
const string & get_agg_handler()
virtual ~BESDefinitionStorageVolatile()
virtual const string & get_name() const
retrieve the name of this persistent store
virtual void end_tag(const string &tag_name)