10 #define _VALUE_FINFO_H
45 void ( T::*setFunc )( F ),
46 F ( T::*getFunc )()
const )
49 string setname =
"set" +
name;
50 setname[3] = std::toupper( setname[3] );
53 "Assigns field value.",
56 string getname =
"get" +
name;
57 getname[3] = std::toupper( getname[3] );
60 "Requests field value. The requesting Element must "
61 "provide a handler for the returned value.",
72 const string& arg )
const {
77 string& returnValue )
const {
95 F ( T::*getFunc )()
const )
98 string getname =
"get" +
name;
99 getname[3] = std::toupper( getname[3] );
102 "Requests field value. The requesting Element must "
103 "provide a handler for the returned value.",
113 const string& arg )
const {
118 string& returnValue )
const {
120 tgt.
objId(), field, returnValue );
130 #endif // _VALUE_FINFO_H
bool strGet(const Eref &tgt, const string &field, string &returnValue) const
DestFinfo * getFinfo() const
bool strGet(const Eref &tgt, const string &field, string &returnValue) const
ValueFinfoBase(const string &name, const string &doc)
const string & name() const
ReadOnlyValueFinfo(const string &name, const string &doc, F(T::*getFunc)() const )
void registerFinfo(Finfo *f)
static bool innerStrSet(const ObjId &dest, const string &field, const string &arg)
static bool innerStrGet(const ObjId &dest, const string &field, string &str)
void registerFinfo(Cinfo *c)
bool strSet(const Eref &tgt, const string &field, const string &arg) const
vector< string > innerDest() const
bool strSet(const Eref &tgt, const string &field, const string &arg) const
ValueFinfo(const string &name, const string &doc, void(T::*setFunc)(F), F(T::*getFunc)() const )
void registerFinfo(Cinfo *c)