#include <LookupElementValueFinfo.h>
Public Member Functions | |
~LookupElementValueFinfo () | |
LookupElementValueFinfo (const string &name, const string &doc, void(T::*setFunc)(const Eref &, L, F), F(T::*getFunc)(const Eref &, L) const ) | |
void | registerFinfo (Cinfo *c) |
bool | strSet (const Eref &tgt, const string &field, const string &arg) const |
bool | strGet (const Eref &tgt, const string &field, string &returnValue) const |
string | rttiType () const |
This class manages field access for fields that have an index, or other lookup handle. Here T is the parent class L is the lookup class F is the field class.
LookupElementValueFinfo< T, L, F >::~LookupElementValueFinfo | ( | ) | [inline] |
LookupElementValueFinfo< T, L, F >::LookupElementValueFinfo | ( | const string & | name, | |
const string & | doc, | |||
void(T::*)(const Eref &, L, F) | setFunc, | |||
F(T::*)(const Eref &, L) const | getFunc | |||
) | [inline] |
void LookupElementValueFinfo< T, L, F >::registerFinfo | ( | Cinfo * | c | ) | [inline, virtual] |
Returns string-ified form to handle template expectations for name field string getName() const; Assign function Ids, bindIndex and so on.
Implements Finfo.
References Cinfo::registerFinfo().
string LookupElementValueFinfo< T, L, F >::rttiType | ( | ) | const [inline, virtual] |
Returns the documentation string for the Finfo string docs() const; Returns the RTTI type string for the finfo by referring to an internal virtual function. string type() const; Returns the list of subsidiary SrcFinfos. Used in Shared Finfos, empty otherwise. Goes via internal virtual function. vector< string > src() const; Returns the list of subsidiary destFinfos. Used in SharedFinfos and ValueFinfos, empty otherwise. Goes via internal virtual function. vector< string > dest() const; Returns an RTTI type string for this Finfo.
Reimplemented from Finfo.
bool LookupElementValueFinfo< T, L, F >::strGet | ( | const Eref & | tgt, | |
const string & | field, | |||
string & | returnValue | |||
) | const [inline, virtual] |
Function to return value of field into a string argument. Returns true on success. Normally called only from SetGet::strGet.
Implements Finfo.
References Eref::objId().
bool LookupElementValueFinfo< T, L, F >::strSet | ( | const Eref & | tgt, | |
const string & | field, | |||
const string & | arg | |||
) | const [inline, virtual] |
Function to set this field using a string argument. Returns true on success. Normally called only from SetGet::strSet.
Implements Finfo.
References Eref::objId().