38 :
TNamed(nom,
""), fNumber(0.0)
48 :
TNamed(nom, val), fNumber(0.0)
80 :
TNamed(nom,
"Double_t"), fNumber(val)
112 :
TNamed(nom,
"Int_t"), fNumber(val)
122 :
TNamed(nom,
"Bool_t"), fNumber(val)
133 :
TNamed(nom, p.GetTitle()), fNumber(p.fNumber)
188 Warning(
"Add",
"Parameters are not same type: this->name=%s (type=%d) other->name=%s (type=%d)",
193 TString w = Get<TString>() +
",";
246 if (name !=
"") name.
Append(
".");
377 return ((*
this) == (*_obj));
464 if (strcmp(option,
"")) {
468 else if (opt ==
"bool" && !
IsBool()) can_print =
kFALSE;
474 if (can_print) cout <<
"<" <<
GetName() <<
"=" <<
GetTitle() <<
">" << endl;
479 if (can_print) cout <<
"<" <<
GetName() <<
"=" << dec <<
GetInt() <<
">" << endl;
483 if (can_print) cout <<
"<" <<
GetName() <<
"=" <<
GetString() <<
">" << endl;
487 if (can_print) cout <<
"<" <<
GetName() <<
"=" <<
GetDouble() <<
">" << endl;
506 if (!other || !other->
IsNumber())
return 0;
508 if ((*other) == (*this))
return 0;
522 if (name !=
"") name.
Append(
".");
550 sql_type =
"INTEGER";
552 return sql_type.
Data();
ClassImp(KVPartitionList) void KVPartitionList
Initialisation.
static Bool_t AreEqual(Double_t x, Double_t y, Long64_t maxdif=1)
Comparison between two 64-bit floating-point values.
A generic named parameter storing values of different types.
Bool_t IsEqual(const TObject *obj) const
Bool_t HasSameValueAs(const KVNamedParameter &) const
const Char_t * GetString() const
KVNamedParameter()
Default constructor.
void Set(const char *, const char *)
virtual void Print(Option_t *opt="") const
void Add(const KVNamedParameter &p)
Bool_t operator==(const KVNamedParameter &) const
const Char_t * GetSQLType() const
Double_t GetDouble() const
virtual void Clear(Option_t *="")
Removes the name and any assigned value.
virtual void ls(Option_t *opt="") const
Int_t Compare(const TObject *obj) const
Compares numerical parameters for sorting lists (such as KVNameValueList)
void WriteToEnv(TEnv *, const TString &p="")
Write parameter in TEnv, using optional prefix p as "p.[name]".
Double_t fNumber
used to store numerical (integer or floating-point) values
TString GetTString() const
virtual ~KVNamedParameter()
Destructor.
virtual const char * GetName() const
virtual void SetTitle(const char *title="")
virtual const char * GetTitle() const
virtual void SetNameTitle(const char *name, const char *title)
virtual void Warning(const char *method, const char *msgfmt,...) const
virtual Bool_t InheritsFrom(const char *classname) const
virtual void Info(const char *method, const char *msgfmt,...) const
static void IndentLevel()
TString & Append(char c, Ssiz_t rep=1)
const char * Data() const
void convert(AxisAngle const &from, EulerAngles &to)