12 #include "../shell/Shell.h"
13 #include "../shell/Neutral.h"
22 string f2 = field.substr( 3 );
24 if ( child ==
Id() ) {
25 cout <<
"Error: SetGet:checkSet:: No field or child named '" <<
26 field <<
"' was found on\n" << tgt.
id.
path() << endl;
28 if ( field.substr( 0, 3 ) ==
"set" )
30 else if ( field.substr( 0, 3 ) ==
"get" )
38 tgt =
ObjId( child, 0 );
42 cout <<
"SetGet::checkSet: child index mismatch\n";
76 cout <<
Shell::myNode() <<
": Error: SetGet::strGet: Field " <<
88 cout <<
Shell::myNode() <<
": Error: SetGet::strSet: Field " <<
virtual bool strGet(const Eref &tgt, const string &field, string &returnValue) const =0
static const OpFunc * checkSet(const string &field, ObjId &tgt, FuncId &fid)
Element * element() const
Synonym for Id::operator()()
std::string path(const std::string &separator="/") const
static Id child(const Eref &e, const string &name)
virtual bool strSet(const Eref &tgt, const string &field, const string &arg) const =0
static bool strSet(const ObjId &dest, const string &field, const string &val)
static bool strGet(const ObjId &tgt, const string &field, string &ret)
const Cinfo * cinfo() const
virtual unsigned int numData() const =0
Returns number of data entries across all nodes.
const OpFunc * getOpFunc() const
Element * element() const
static unsigned int myNode()
const string & getName() const
const Finfo * findFinfo(const string &name) const