9 #ifndef _ELEMENT_VALUE_FINFO_H
10 #define _ELEMENT_VALUE_FINFO_H
27 void ( T::*setFunc )(
const Eref&, F ),
28 F ( T::*getFunc )(
const Eref& )
const )
31 string setname =
"set" +
name;
32 setname[3] = std::toupper( setname[3] );
35 "Assigns field value.",
38 string getname =
"get" +
name;
39 getname[3] = std::toupper( getname[3] );
42 "Requests field value. The requesting Element must "
43 "provide a handler for the returned value.",
55 const string& arg )
const {
60 string& returnValue )
const {
62 tgt.
objId(), field, returnValue );
80 F ( T::*getFunc )(
const Eref& e )
const )
83 string getname =
"get" +
name;
84 getname[3] = std::toupper( getname[3] );
87 "Requests field value. The requesting Element must "
88 "provide a handler for the returned value.",
98 const string& arg )
const {
103 string& returnValue )
const {
105 tgt.
objId(), field, returnValue );
115 #endif // _ELEMENT_VALUE_FINFO_H
bool strGet(const Eref &tgt, const string &field, string &returnValue) const
ElementValueFinfo(const string &name, const string &doc, void(T::*setFunc)(const Eref &, F), F(T::*getFunc)(const Eref &) const )
const string & name() const
bool strSet(const Eref &tgt, const string &field, const string &arg) const
~ReadOnlyElementValueFinfo()
ReadOnlyElementValueFinfo(const string &name, const string &doc, F(T::*getFunc)(const Eref &e) 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 strGet(const Eref &tgt, const string &field, string &returnValue) const
bool strSet(const Eref &tgt, const string &field, const string &arg) const
void registerFinfo(Cinfo *c)