Belle II Software development
|
Classes | |
struct | NameValue |
Public Types | |
typedef std::vector< NameValue > | NameValueList |
Public Member Functions | |
NSMData (const std::string &dataname, const std::string &format, int revision) | |
NSMData (const NSMData &data) | |
const NSMData & | operator= (const NSMData &data) |
Operator =. | |
int | getRevision () const |
const std::string & | getFormat () const |
int | getSize () const |
void | setRevision (int revision) |
void | setFormat (const std::string &format) |
void | setSize (int size) |
bool | isAvailable () |
void * | open (NSMCommunicator &comm) |
void * | allocate (NSMCommunicator &comm, int interval=2) |
void | flush () |
void * | get () |
const void * | get () const |
void * | parse (const char *inc_dir=NULL, bool allocated=false) |
int | getNObjects (const std::string &name) const |
const NSMDataList & | getObjects (const std::string &name) const |
NSMDataList & | getObjects (const std::string &name) |
const NSMData & | getObject (const std::string &name, int index=0) const |
NSMData & | getObject (const std::string &name, int index=0) |
void | print (const std::string &name_in="") const |
void | printPV (const std::string &name_in="") const |
const void * | find (const std::string &name_in, DBField::Type &type, int &length) const |
void | search (NameValueList &map, const std::string &name="") const |
void * | getValue (const std::string &name) |
const void * | getValue (const std::string &name) const override |
void | setValue (const std::string &name, const void *value, int size) override |
void | addValue (const std::string &name, const void *value, DBField::Type type, int length=0) override |
const std::string & | getText (const std::string &) const override |
void | addText (const std::string &, const std::string &) override |
void | readObject (Reader &reader) override |
void | writeObject (Writer &writer) const override |
const std::string & | getPath () const |
void | setPath (const std::string &path) |
int | getId () const |
void | setId (int id) |
const std::string & | getName () const |
void | setName (const std::string &name) |
int | getIndex () const |
void | setIndex (int index) |
DBField::NameList & | getFieldNames () |
const DBField::NameList & | getFieldNames () const |
DBField::Property | getProperty (const std::string &name) const |
bool | hasField (const std::string &name) const |
bool | hasValue (const std::string &name) const |
bool | hasText (const std::string &name) const |
bool | hasObject (const std::string &name) const |
void | add (const std::string &name, DBField::Property pro) |
void | setValue (const std::string &name, const std::string &value) |
void | setText (const std::string &name, const std::string &value) |
bool | getBool (const std::string &name, int index=0) const |
char | getChar (const std::string &name, int index=0) const |
short | getShort (const std::string &name, int index=0) const |
int | getInt (const std::string &name, int index=0) const |
long long | getLong (const std::string &name, int index=0) const |
float | getFloat (const std::string &name, int index=0) const |
double | getDouble (const std::string &name, int index=0) const |
void | addBool (const std::string &name, bool value) |
void | addChar (const std::string &name, char value) |
void | addShort (const std::string &name, short value) |
void | addInt (const std::string &name, int value) |
void | addLong (const std::string &name, long long value) |
void | addFloat (const std::string &name, float value) |
void | addDouble (const std::string &name, double value) |
void | setBool (const std::string &name, bool value, int index=0) |
void | setChar (const std::string &name, int value, int index=0) |
void | setShort (const std::string &name, int value, int index=0) |
void | setInt (const std::string &name, int value, int index=0) |
void | setLong (const std::string &name, long long value, int index=0) |
void | setFloat (const std::string &name, float value, int index=0) |
void | setDouble (const std::string &name, double value, int index=0) |
const std::string | getValueText (const std::string &name) const |
virtual void | setValueText (const std::string &name, const std::string &value) |
Protected Member Functions | |
void | reset () override |
Private Types | |
typedef std::vector< NSMData > | NSMDataList |
typedef std::map< std::string, NSMDataList > | NSMDataListMap |
Private Member Functions | |
NSMData (void *pdata, const NSMData &data) | |
NSMData (void *pdata, const std::string &dataname, const std::string &format, int revision) | |
void | set (void *pdata) |
int | initProperties () |
template<typename T > | |
T | getD (const std::string &name, int index=0) const |
Private Attributes | |
bool | m_allocated |
void * | m_pdata |
int | m_size |
int | m_offset |
std::string | m_format |
int | m_revision |
NSMDataListMap | m_data_v_m |
std::string | m_empty |
NSMCommunicator * | m_com |
int | m_tstamp |
int | m_index |
std::string | m_path |
int | m_id |
std::string | m_name |
DBField::NameList | m_name_v |
DBField::PropertyList | m_pro_m |
|
private |
NSMData | ( | const std::string & | dataname, |
const std::string & | format, | ||
int | revision | ||
) |
Definition at line 33 of file NSMData.cc.
NSMData | ( | ) |
Definition at line 43 of file NSMData.cc.
Definition at line 50 of file NSMData.cc.
|
virtual |
Definition at line 84 of file NSMData.cc.
|
inherited |
Definition at line 88 of file AbstractDBObject.cc.
|
inlineoverridevirtual |
|
overridevirtual |
Implements AbstractDBObject.
Definition at line 118 of file NSMData.cc.
void * allocate | ( | NSMCommunicator & | comm, |
int | interval = 2 |
||
) |
Definition at line 164 of file NSMData.cc.
const void * find | ( | const std::string & | name_in, |
DBField::Type & | type, | ||
int & | length | ||
) | const |
Definition at line 518 of file NSMData.cc.
void flush | ( | ) |
Definition at line 222 of file NSMData.cc.
|
inlineprivateinherited |
Definition at line 103 of file AbstractDBObject.h.
|
inlineinherited |
Definition at line 46 of file AbstractDBObject.h.
|
inlineinherited |
Definition at line 47 of file AbstractDBObject.h.
|
inline |
|
inlineinherited |
Definition at line 40 of file AbstractDBObject.h.
|
inlineinherited |
Definition at line 44 of file AbstractDBObject.h.
|
inlineinherited |
Definition at line 42 of file AbstractDBObject.h.
int getNObjects | ( | const std::string & | name | ) | const |
Definition at line 556 of file NSMData.cc.
NSMData & getObject | ( | const std::string & | name, |
int | index = 0 |
||
) |
Definition at line 570 of file NSMData.cc.
const NSMData & getObject | ( | const std::string & | name, |
int | index = 0 |
||
) | const |
Definition at line 563 of file NSMData.cc.
NSMData::NSMDataList & getObjects | ( | const std::string & | name | ) |
Definition at line 584 of file NSMData.cc.
const NSMData::NSMDataList & getObjects | ( | const std::string & | name | ) | const |
Definition at line 577 of file NSMData.cc.
|
inlineinherited |
Definition at line 38 of file AbstractDBObject.h.
|
inherited |
Definition at line 54 of file AbstractDBObject.cc.
|
inlineoverridevirtual |
void * getValue | ( | const std::string & | name | ) |
Definition at line 283 of file NSMData.cc.
|
overridevirtual |
Implements AbstractDBObject.
Definition at line 290 of file NSMData.cc.
|
inherited |
Definition at line 96 of file AbstractDBObject.cc.
|
inherited |
Definition at line 61 of file AbstractDBObject.cc.
|
inherited |
Definition at line 81 of file AbstractDBObject.cc.
|
inherited |
Definition at line 75 of file AbstractDBObject.cc.
|
inherited |
Definition at line 67 of file AbstractDBObject.cc.
|
inline |
void * open | ( | NSMCommunicator & | comm | ) |
Definition at line 145 of file NSMData.cc.
Operator =.
Definition at line 93 of file NSMData.cc.
void * parse | ( | const char * | inc_dir = NULL , |
bool | allocated = false |
||
) |
Definition at line 191 of file NSMData.cc.
void print | ( | const std::string & | name_in = "" | ) | const |
Definition at line 384 of file NSMData.cc.
void printPV | ( | const std::string & | name_in = "" | ) | const |
Definition at line 464 of file NSMData.cc.
|
overridevirtual |
Implements Serializable.
Definition at line 298 of file NSMData.cc.
|
overrideprotectedvirtual |
Reimplemented from AbstractDBObject.
Definition at line 109 of file NSMData.cc.
void search | ( | NSMData::NameValueList & | map, |
const std::string & | name = "" |
||
) | const |
Definition at line 400 of file NSMData.cc.
|
inlineprivate |
|
inline |
|
inlineinherited |
Definition at line 41 of file AbstractDBObject.h.
|
inlineinherited |
Definition at line 45 of file AbstractDBObject.h.
|
inlineinherited |
Definition at line 43 of file AbstractDBObject.h.
|
inlineinherited |
Definition at line 39 of file AbstractDBObject.h.
|
inline |
|
inlineinherited |
Definition at line 55 of file AbstractDBObject.h.
|
overridevirtual |
Implements AbstractDBObject.
Definition at line 134 of file NSMData.cc.
|
virtualinherited |
Definition at line 117 of file AbstractDBObject.cc.
|
overridevirtual |
Implements Serializable.
Definition at line 344 of file NSMData.cc.
|
private |
|
privateinherited |
Definition at line 96 of file AbstractDBObject.h.
|
privateinherited |
Definition at line 94 of file AbstractDBObject.h.
|
privateinherited |
Definition at line 97 of file AbstractDBObject.h.
|
privateinherited |
Definition at line 98 of file AbstractDBObject.h.
|
privateinherited |
Definition at line 95 of file AbstractDBObject.h.
|
privateinherited |
Definition at line 99 of file AbstractDBObject.h.