4#include "KVNamedParameter.h"
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)",
377 return ((*
this) == (*_obj));
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;
550 sql_type =
"INTEGER";
552 return sql_type.
Data();
winID h TVirtualViewer3D TVirtualGLPainter p
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 void SetTitle(const char *title="")
const char * GetName() const override
const char * GetTitle() const override
virtual void SetNameTitle(const char *name, const char *title)
virtual const char * GetName() const
virtual void Warning(const char *method, const char *msgfmt,...) const
virtual Bool_t InheritsFrom(const char *classname) const
virtual const char * GetTitle() const
virtual void Info(const char *method, const char *msgfmt,...) const
static void IndentLevel()
const char * Data() const
void convert(AxisAngle const &from, EulerAngles &to)