#include <SetGet.h>
Public Member Functions | |
SetGet () | |
virtual | ~SetGet () |
virtual bool | checkOpClass (const OpFunc *op) const =0 |
Static Public Member Functions | |
static const OpFunc * | checkSet (const string &field, ObjId &tgt, FuncId &fid) |
static bool | strGet (const ObjId &tgt, const string &field, string &ret) |
static bool | strSet (const ObjId &dest, const string &field, const string &val) |
static const vector< double * > * | dispatchGet (const ObjId &tgt, FuncId tgtFid, const double *arg, unsigned int size) |
Sends out request for data, and awaits its return. |
SetGet::SetGet | ( | ) | [inline] |
virtual SetGet::~SetGet | ( | ) | [inline, virtual] |
virtual bool SetGet::checkOpClass | ( | const OpFunc * | op | ) | const [pure virtual] |
Implemented in SetGet0, and SetGet1< A >.
Utility function to check that the target field matches this source type, to look up and pass back the fid, and to return the number of targetEntries. Tgt is passed in as the destination ObjId. May be changed inside, if the function determines that it should be directed to a child Element acting as a Value. Checks arg # and types for a 'set' call. Can be zero to 3 args. Returns # of tgts if good. This is 0 if bad. Passes back found fid.
Referenced by LookupField< L, A >::get(), Field< A >::get(), LookupField< L, A >::getVec(), Field< A >::getVec(), SetGet6< A1, A2, A3, A4, A5, A6 >::set(), SetGet5< A1, A2, A3, A4, A5 >::set(), SetGet4< A1, A2, A3, A4 >::set(), SetGet3< A1, A2, A3 >::set(), SetGet2< L, A >::set(), SetGet1< A >::set(), SetGet0::set(), SetGet2< L, A >::setVec(), and SetGet1< A >::setVec().
static const vector< double* >* SetGet::dispatchGet | ( | const ObjId & | tgt, | |
FuncId | tgtFid, | |||
const double * | arg, | |||
unsigned int | size | |||
) | [static] |
Sends out request for data, and awaits its return.
static bool SetGet::strGet | ( | const ObjId & | tgt, | |
const string & | field, | |||
string & | ret | |||
) | [static] |
Blocking 'get' call, returning into a string. There is a matching 'get<T> call, returning appropriate type.
Referenced by testStrGet().
static bool SetGet::strSet | ( | const ObjId & | dest, | |
const string & | field, | |||
const string & | val | |||
) | [static] |
Blocking 'set' call, using automatic string conversion There is a matching blocking set call with typed arguments.
Referenced by testStrSet().