Belle II Software development
|
Classes | |
struct | NameValue |
Public Types | |
typedef std::vector< DBObject > | DBObjectList |
typedef std::map< std::string, void * > | FieldValueList |
typedef std::map< std::string, std::string > | FieldTextList |
typedef std::map< std::string, DBObjectList > | FieldObjectList |
typedef std::vector< NameValue > | NameValueList |
Public Member Functions | |
DBObject (const std::string &path) | |
DBObject (const DBObject &obj) | |
const DBObject & | operator= (const DBObject &obj) |
int | getNObjects (const std::string &name) const |
DBObjectList & | getObjects (const std::string &name) |
const DBObjectList & | getObjects (const std::string &name) const |
DBObject & | getObject (const std::string &name, int i=0) |
const DBObject & | getObject (const std::string &name, int i=0) const |
void | addObjects (const std::string &name, const DBObjectList &obj) |
void | addObject (const std::string &name, const DBObject &obj) |
DBObject & | operator() (const std::string &name, int index=0) |
const DBObject & | operator() (const std::string &name, int index=0) const |
StringList | getNameList (bool isfull) const |
void | print (bool isfull=true) const |
const std::string | sprint (bool isfull) const |
void | printHTML (bool isfull=true) const |
const std::string | printSQL (const std::string &table, int id) const |
void | search (NameValueList &map, const std::string &name="", bool isfull=true) const |
int | getDate () const |
void | setDate (const Date &date) |
void | setDate (int date) |
const void * | getValue (const std::string &name) const override |
const std::string & | getText (const std::string &name) const override |
void | addText (const std::string &name, const std::string &value) override |
void | addValue (const std::string &name, const void *value, DBField::Type type, int length) override |
void | setValue (const std::string &name, const void *value, int length) 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 Member Functions | |
void | copy (const DBObject &obj) |
template<typename T > | |
T | getD (const std::string &name, int index=0) const |
Private Attributes | |
FieldValueList | m_value_m |
FieldTextList | m_text_m |
FieldObjectList | m_obj_v_m |
std::string | m_empty |
int | m_date |
int | m_index |
std::string | m_path |
int | m_id |
std::string | m_name |
DBField::NameList | m_name_v |
DBField::PropertyList | m_pro_m |
Definition at line 21 of file DBObject.h.
typedef std::vector<DBObject> DBObjectList |
Definition at line 24 of file DBObject.h.
typedef std::map<std::string, DBObjectList> FieldObjectList |
Definition at line 27 of file DBObject.h.
typedef std::map<std::string, std::string> FieldTextList |
Definition at line 26 of file DBObject.h.
typedef std::map<std::string, void*> FieldValueList |
Definition at line 25 of file DBObject.h.
typedef std::vector<NameValue> NameValueList |
Definition at line 36 of file DBObject.h.
DBObject | ( | ) |
Definition at line 21 of file DBObject.cc.
DBObject | ( | const std::string & | path | ) |
Definition at line 26 of file DBObject.cc.
Definition at line 32 of file DBObject.cc.
|
virtual |
Definition at line 71 of file DBObject.cc.
|
inherited |
Definition at line 88 of file AbstractDBObject.cc.
void addObject | ( | const std::string & | name, |
const DBObject & | obj | ||
) |
Definition at line 262 of file DBObject.cc.
void addObjects | ( | const std::string & | name, |
const DBObjectList & | obj | ||
) |
Definition at line 273 of file DBObject.cc.
|
overridevirtual |
Implements AbstractDBObject.
Definition at line 251 of file DBObject.cc.
|
overridevirtual |
Implements AbstractDBObject.
Definition at line 225 of file DBObject.cc.
|
private |
Definition at line 44 of file DBObject.cc.
|
inlineprivateinherited |
Definition at line 103 of file AbstractDBObject.h.
|
inline |
Definition at line 71 of file DBObject.h.
|
inlineinherited |
Definition at line 46 of file AbstractDBObject.h.
|
inlineinherited |
Definition at line 47 of file AbstractDBObject.h.
|
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.
StringList getNameList | ( | bool | isfull | ) | const |
Definition at line 391 of file DBObject.cc.
int getNObjects | ( | const std::string & | name | ) | const |
Definition at line 76 of file DBObject.cc.
DBObject & getObject | ( | const std::string & | name, |
int | i = 0 |
||
) |
Definition at line 101 of file DBObject.cc.
const DBObject & getObject | ( | const std::string & | name, |
int | i = 0 |
||
) | const |
Definition at line 110 of file DBObject.cc.
DBObjectList & getObjects | ( | const std::string & | name | ) |
Definition at line 83 of file DBObject.cc.
const DBObjectList & getObjects | ( | const std::string & | name | ) | const |
Definition at line 92 of file DBObject.cc.
|
inlineinherited |
Definition at line 38 of file AbstractDBObject.h.
|
inherited |
Definition at line 54 of file AbstractDBObject.cc.
|
overridevirtual |
Implements AbstractDBObject.
Definition at line 217 of file DBObject.cc.
|
overridevirtual |
Implements AbstractDBObject.
Definition at line 209 of file DBObject.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 |
Definition at line 55 of file DBObject.h.
|
inline |
Definition at line 59 of file DBObject.h.
Definition at line 38 of file DBObject.cc.
void print | ( | bool | isfull = true | ) | const |
Definition at line 284 of file DBObject.cc.
void printHTML | ( | bool | isfull = true | ) | const |
Definition at line 354 of file DBObject.cc.
const std::string printSQL | ( | const std::string & | table, |
int | id | ||
) | const |
Definition at line 475 of file DBObject.cc.
|
overridevirtual |
Implements Serializable.
Definition at line 139 of file DBObject.cc.
|
overrideprotectedvirtual |
Reimplemented from AbstractDBObject.
Definition at line 119 of file DBObject.cc.
void search | ( | NameValueList & | map, |
const std::string & | name = "" , |
||
bool | isfull = true |
||
) | const |
Definition at line 404 of file DBObject.cc.
|
inline |
Definition at line 72 of file DBObject.h.
|
inline |
Definition at line 73 of file DBObject.h.
|
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.
|
inlineinherited |
Definition at line 55 of file AbstractDBObject.h.
|
overridevirtual |
Implements AbstractDBObject.
Definition at line 241 of file DBObject.cc.
|
virtualinherited |
Definition at line 117 of file AbstractDBObject.cc.
const std::string sprint | ( | bool | isfull | ) | const |
Definition at line 316 of file DBObject.cc.
|
overridevirtual |
Implements Serializable.
Definition at line 174 of file DBObject.cc.
|
private |
Definition at line 92 of file DBObject.h.
|
private |
Definition at line 91 of file DBObject.h.
|
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.
|
private |
Definition at line 90 of file DBObject.h.
|
privateinherited |
Definition at line 95 of file AbstractDBObject.h.
|
privateinherited |
Definition at line 99 of file AbstractDBObject.h.
|
private |
Definition at line 89 of file DBObject.h.
|
private |
Definition at line 88 of file DBObject.h.