GammaWare  Head Version for release 0.9
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ADF::ANamedItem Class Referenceabstract

ANamedItem. More...

#include <DataHandling.h>

Inheritance diagram for ADF::ANamedItem:

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 ANamedItemMakeAClone () const =0
 clone that named item More...
 
virtual DataLinkMakeADataLink (void *)=0
 check is the passed DataLink is linked to the internal value of this NamaedItem More...
 
virtual ANamedItemMakeAProxy ()=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
 

Detailed Description

ANamedItem.

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 :

  • S : a 16 bit signed integer (Short_t)
  • US : a 16 bit unsigned integer (UShort_t)
  • I : a 32 bit signed integer (Int_t)
  • UI : a 32 bit unsigned integer (UInt_t)
  • F : a 32 bit floating point (Float_t)
  • D : a 64 bit floating point (Double_t)
  • L : a 64 bit signed integer (Long64_t)
  • UL : a 64 bit unsigned integer (ULong64_t)
  • B : a boolean (Bool_t)

An simple stucture could be a ANamedItem. In order to properly define it, the following function has to be defined:

const char *ADF::NamedItemTypeOf(MyStruct_t)

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.


The documentation for this class was generated from the following file: