![]() |
Diana Software
|
Variable Data Type. More...
Public Types | |
| enum | QVdt_type { Int_QVdt = 'I' , Double_QVdt = 'F' , String_QVdt = 'S' , Vector_QVdt = 'V' , Unassigned_QVdt = 'U' } |
| typedef std::vector< QVdt > | QVdt_vector |
Public Member Functions | |
| QVdt () | |
| QVdt (const std::string &value, const std::string &name="", QVdt_type type=Unassigned_QVdt) | |
| QVdt (long int value) | |
| QVdt (double value) | |
| template<typename V > | |
| QVdt (const std::vector< V, std::allocator< V > > &value) | |
| QVdt (int value) | |
| QVdt (short value) | |
| QVdt (char value) | |
| QVdt (unsigned long value) | |
| QVdt (unsigned short value) | |
| QVdt (unsigned char value) | |
| QVdt (float value) | |
| void | SetName (const std::string &name) |
| std::string | GetName () const |
| const QVdt & | operator= (const std::string &value) |
| const QVdt & | operator= (long int value) |
| const QVdt & | operator= (double value) |
| template<typename V > | |
| const QVdt & | operator= (const std::vector< V, std::allocator< V > > &value) |
| const QVdt & | operator= (int value) |
| const QVdt & | operator= (short value) |
| const QVdt & | operator= (char value) |
| const QVdt & | operator= (unsigned long value) |
| const QVdt & | operator= (unsigned short value) |
| const QVdt & | operator= (unsigned char value) |
| const QVdt & | operator= (float value) |
| const QVdt & | operator= (const QVdt &other) |
| bool | is_valid () const |
| QVdt_type | GetType () const |
| bool | IsScalar () const |
| bool | IsVector () const |
| long int | GetInt () const |
| double | GetDouble () const |
| const std::string & | GetString () const |
| bool | GetBool () const |
| const QVdt_vector & | GetVector () const |
| std::vector< int > | GetVectorInt () const |
| std::vector< double > | GetVectorDouble () const |
| std::vector< std::string > | GetVectorString () const |
| std::vector< bool > | GetVectorBool () const |
| std::set< int > | GetSetInt () const |
| std::set< std::string > | GetSetString () const |
Private Member Functions | |
| void | CheckType (QVdt_type new_type) const |
| std::string | ToString () const |
| QVdt_type | SearchType (const std::string &str) |
| void | AssignValue (const std::string &str) |
| template<class T > | |
| std::vector< T > | GetStdVector () const |
| template<class T > | |
| std::set< T > | GetStdSet () const |
| template<class T > | |
| T | Get () const |
| template<> | |
| int | Get () const |
| template<> | |
| double | Get () const |
| template<> | |
| bool | Get () const |
| template<> | |
| int | Get () const |
| template<> | |
| double | Get () const |
| template<> | |
| bool | Get () const |
Private Attributes | |
| QVdt_type | type_internal |
| long int | value_i |
| double | value_f |
| std::string | value_s |
| QVdt_vector | value_v |
| std::string | name_s |
| bool | fBuiltFromString |
Variable Data Type.
Variable Data Type is an object which is constructed from a string and holds the type of the assigne value. QVdt("1000") creates a QVdt obj holding an integer with value
| typedef std::vector<QVdt> QVdt::QVdt_vector |
| enum QVdt::QVdt_type |
| QVdt::QVdt | ( | const std::string & | value, |
| const std::string & | name = "", |
||
| QVdt_type | type = Unassigned_QVdt |
||
| ) |
Definition at line 149 of file QVdt.cc.
References AssignValue(), CheckType(), fBuiltFromString, SearchType(), type_internal, and Unassigned_QVdt.
|
inline |
Definition at line 44 of file QVdt.hh.
References fBuiltFromString, Int_QVdt, type_internal, and value_i.
|
inline |
Definition at line 46 of file QVdt.hh.
References Double_QVdt, fBuiltFromString, type_internal, and value_f.
|
inline |
Definition at line 48 of file QVdt.hh.
References fBuiltFromString, type_internal, value_v, and Vector_QVdt.
|
inline |
Definition at line 57 of file QVdt.hh.
References fBuiltFromString, Int_QVdt, type_internal, and value_i.
|
inline |
Definition at line 59 of file QVdt.hh.
References fBuiltFromString, Int_QVdt, type_internal, and value_i.
|
inline |
Definition at line 61 of file QVdt.hh.
References fBuiltFromString, Int_QVdt, type_internal, and value_i.
|
inline |
Definition at line 62 of file QVdt.hh.
References fBuiltFromString, Int_QVdt, type_internal, and value_i.
|
inline |
Definition at line 63 of file QVdt.hh.
References fBuiltFromString, Int_QVdt, type_internal, and value_i.
|
inline |
Definition at line 64 of file QVdt.hh.
References fBuiltFromString, Int_QVdt, type_internal, and value_i.
|
inline |
Definition at line 65 of file QVdt.hh.
References Double_QVdt, fBuiltFromString, type_internal, and value_f.
|
private |
Definition at line 38 of file QVdt.cc.
References DianaThrow, Double_QVdt, err, Int_QVdt, name_s, QERR_TYPE_CONVERSION, QERR_UNKNOWN_ERR, String_QVdt, type_internal, value_f, value_i, value_s, value_v, and Vector_QVdt.
Referenced by operator=(), and QVdt().
|
private |
Definition at line 239 of file QVdt.cc.
References DianaThrow, Double_QVdt, err, Int_QVdt, name_s, QERR_TYPE_CONVERSION, and type_internal.
Referenced by GetDouble(), GetInt(), GetVector(), operator=(), and QVdt().
|
private |
|
private |
Definition at line 283 of file QVdt.cc.
References GetDouble().
|
private |
|
inlineprivate |
Definition at line 148 of file QVdt.hh.
References DianaThrow.
|
private |
|
private |
|
private |
|
inline |
Definition at line 102 of file QVdt.hh.
References GetInt().
Referenced by Get(), and QOptions::ReplaceUserParams().
| double QVdt::GetDouble | ( | ) | const |
Definition at line 219 of file QVdt.cc.
References CheckType(), Double_QVdt, type_internal, value_f, and value_i.
Referenced by Get(), and operator<<().
| long int QVdt::GetInt | ( | ) | const |
Definition at line 213 of file QVdt.cc.
References CheckType(), Int_QVdt, and value_i.
Referenced by Get(), GetBool(), MGuiDriver::HandleCommand(), QObjectInspector::Inspect(), and operator<<().
|
inline |
Definition at line 68 of file QVdt.hh.
References name_s.
Referenced by MGuiDriver::ChangeModuleParameter(), QRootFileWriterBase::Open(), and operator<<().
|
inlineprivate |
Definition at line 138 of file QVdt.hh.
References GetVector().
|
inlineprivate |
Definition at line 128 of file QVdt.hh.
References GetVector().
| const std::string & QVdt::GetString | ( | ) | const |
Definition at line 225 of file QVdt.cc.
References fBuiltFromString, String_QVdt, ToString(), type_internal, and value_s.
Referenced by MGuiDriver::HandleCommand(), QRootFileWriterBase::Open(), operator<<(), operator=(), QGDUtils::QVdtToParameter(), QOptions::ReplaceUserParams(), QBaseModule::Update(), and QBaseModule::UpdateConfigParameters().
|
inline |
Definition at line 96 of file QVdt.hh.
References type_internal.
Referenced by operator<<(), operator=(), QGDUtils::QVdtToParameter(), and MRootNtpDumper::Require().
| const QVdt::QVdt_vector & QVdt::GetVector | ( | ) | const |
Definition at line 233 of file QVdt.cc.
References CheckType(), value_v, and Vector_QVdt.
Referenced by GetStdSet(), GetStdVector(), and operator<<().
|
inline |
|
inline |
Definition at line 94 of file QVdt.hh.
References type_internal, and Unassigned_QVdt.
|
inline |
Definition at line 97 of file QVdt.hh.
References Double_QVdt, Int_QVdt, and type_internal.
|
inline |
Definition at line 98 of file QVdt.hh.
References type_internal, and Vector_QVdt.
Definition at line 196 of file QVdt.cc.
References CheckType(), fBuiltFromString, GetString(), GetType(), name_s, String_QVdt, type_internal, Unassigned_QVdt, value_f, value_i, value_s, and value_v.
| const QVdt & QVdt::operator= | ( | const std::string & | value | ) |
Definition at line 161 of file QVdt.cc.
References AssignValue(), CheckType(), fBuiltFromString, SearchType(), type_internal, and Unassigned_QVdt.
|
inline |
Definition at line 74 of file QVdt.hh.
References CheckType(), fBuiltFromString, type_internal, Unassigned_QVdt, value_v, and Vector_QVdt.
| const QVdt & QVdt::operator= | ( | double | value | ) |
Definition at line 185 of file QVdt.cc.
References CheckType(), Double_QVdt, fBuiltFromString, type_internal, Unassigned_QVdt, and value_f.
| const QVdt & QVdt::operator= | ( | long int | value | ) |
Definition at line 174 of file QVdt.cc.
References CheckType(), fBuiltFromString, Int_QVdt, type_internal, Unassigned_QVdt, and value_i.
|
private |
Definition at line 10 of file QVdt.cc.
References Double_QVdt, Int_QVdt, String_QVdt, and Vector_QVdt.
Referenced by operator=(), and QVdt().
|
inline |
Definition at line 67 of file QVdt.hh.
References name_s.
Referenced by QGDUtils::ParameterToQVdt().
|
private |
Definition at line 111 of file QVdt.cc.
References DianaThrow, Double_QVdt, err, Int_QVdt, QERR_UNKNOWN_ERR, String_QVdt, type_internal, Unassigned_QVdt, value_f, value_i, value_s, value_v, and Vector_QVdt.
Referenced by GetString().
|
private |
Definition at line 121 of file QVdt.hh.
Referenced by GetString(), operator=(), and QVdt().
|
private |
Definition at line 120 of file QVdt.hh.
Referenced by AssignValue(), CheckType(), GetName(), operator=(), and SetName().
|
private |
Definition at line 113 of file QVdt.hh.
Referenced by AssignValue(), CheckType(), GetDouble(), GetString(), GetType(), is_valid(), IsScalar(), IsVector(), operator=(), QVdt(), and ToString().
|
private |
Definition at line 116 of file QVdt.hh.
Referenced by AssignValue(), GetDouble(), operator=(), QVdt(), and ToString().
|
private |
Definition at line 115 of file QVdt.hh.
Referenced by AssignValue(), GetDouble(), GetInt(), operator=(), QVdt(), and ToString().
|
mutableprivate |
Definition at line 117 of file QVdt.hh.
Referenced by AssignValue(), GetString(), operator=(), and ToString().
|
private |
Definition at line 118 of file QVdt.hh.
Referenced by AssignValue(), GetVector(), operator=(), QVdt(), and ToString().