ROOT logo
Podd » (UNKNOWN) » Decoder::THaUsrstrutils

class Decoder::THaUsrstrutils


 R. Michaels, March 2000
 Updated string_from_buffer, May 2007
 THaUsrstrutils = USeR STRing UTILitieS.
 The code below is what is used by DAQ to interpret strings
 like prescale factors
 Yes, this is mostly old-style C, but it
 has the advantage that the interpretation should
 be identical to what the DAQ used.


Function Members (Methods)

public:
virtual~THaUsrstrutils()
static TClass*Class()
intgetflag(const char* s) const
unsigned intgetint(const char* s) const
char*getstr(const char* s) const
virtual TClass*IsA() const
Decoder::THaUsrstrutils&operator=(const Decoder::THaUsrstrutils&)
virtual voidShowMembers(TMemberInspector&)
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
voidstring_from_evbuffer(const UInt_t* evbuffer, int nlen = MAX)
voidstring_from_file(const char* ffile_name)
Decoder::THaUsrstrutilsTHaUsrstrutils()
Decoder::THaUsrstrutilsTHaUsrstrutils(const Decoder::THaUsrstrutils&)
protected:
voidgetflagpos(const char* s, const char** pos_ret, const char** val_ret) const
static voidgetflagpos_instring(const char* constr, const char* s, const char** pos_ret, const char** val_ret)

Data Members

public:
static const unsigned longLONGMAX
static const intMAX
protected:
TStringconfigstr

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

int getflag(const char* s) const
char* getstr(const char* s) const
unsigned int getint(const char* s) const
void getflagpos_instring(const char* constr, const char* s, const char** pos_ret, const char** val_ret)
void string_from_evbuffer(const UInt_t* evbuffer, int nlen = MAX)
 Routine string_from_evbuffer loads the configstr from the event buffer.
 It has the same strengths and weaknesses as the DAQ code,
 hence the interpretation should be the same.

 nlen is the length of the string data (from CODA) in longwords (4 bytes)

 R. Michaels, updated to make the algorithm closely resemble the
              usrstrutils.c used by trigger supervisor.
void string_from_file(const char* ffile_name)
THaUsrstrutils()
{}
virtual ~THaUsrstrutils()
{}
void getflagpos(const char* s, const char** pos_ret, const char** val_ret) const