#include <DataHandling.h>
Public Member Functions | |
ANamedItem (const char *name, const char *type) | |
Constructor for a NamedItem. More... | |
virtual void | GetItem (const BufferIO &) |
read the value of this item from the buffer More... | |
std::string | GetName () const |
change value of this nmaed item using the passed one. it checks if asked, it check first if of the same type/name More... | |
std::string | GetType () const |
Type of the Item. More... | |
Bool_t | IsType (const char *type) |
Check if this is of type 'type'. More... | |
virtual ANamedItem * | MakeAClone () const =0 |
clone that named item More... | |
virtual DataLink * | MakeADataLink (void *)=0 |
check is the passed DataLink is linked to the internal value of this NamaedItem More... | |
virtual ANamedItem * | MakeAProxy ()=0 |
ask this to create a proxy for that item More... | |
std::string & | Name () |
Name of the Item. More... | |
virtual void | Print (std::ostream &=std::cout) const |
virtual void | Reset () |
set the item to the default value More... | |
virtual Bool_t | Set (const ANamedItem *)=0 |
change value of this nmaed item using the passed one. it checks if asked, it check first if of the same type/name More... | |
virtual void | SetItem (BufferIO &) const |
write the value of this item to the buffer More... | |
std::string & | Type () |
Type of the Item. More... | |
virtual | ~ANamedItem () |
Protected Attributes | |
std::string | fName |
std::string | fType |
A ANamedItem is a variable with a name and a type. It could be linked with an external address (See for instance GObject).
Basic ADF types are supported :
An simple stucture could be a ANamedItem. In order to properly define it, the following function has to be defined:
were MyStruct_t is the type of the structure you would like to add. As well, the three operators << and >> (on a BufferIO) and = have to be properly defined.
Definition at line 188 of file DataHandling.h.