4 #include "KVNamedParameter.h"
38 :
TNamed(nom,
""), fNumber(0.0)
48 :
TNamed(nom, val), fNumber(0.0)
80 :
TNamed(nom, val), fNumber(0.0)
112 :
TNamed(nom,
"Double_t"), fNumber(val)
144 :
TNamed(nom,
"Int_t"), fNumber(val)
154 :
TNamed(nom,
"Bool_t"), fNumber(val)
165 :
TNamed(nom,
p.GetTitle()), fNumber(
p.fNumber)
219 Warning(
"Add",
"Parameters are not same type: this->name=%s (type=%d) other->name=%s (type=%d)",
408 return ((*
this) == (*_obj));
499 else if (opt ==
"bool" && !
IsBool()) can_print =
kFALSE;
505 if (can_print) cout <<
"<" <<
GetName() <<
"=" <<
GetTitle() <<
">" << endl;
510 if (can_print) cout <<
"<" <<
GetName() <<
"=" << dec <<
GetInt() <<
">" << endl;
514 if (can_print) cout <<
"<" <<
GetName() <<
"=" <<
GetString() <<
">" << endl;
518 if (can_print) cout <<
"<" <<
GetName() <<
"=" <<
GetDouble() <<
">" << endl;
537 if (!other || !other->
IsNumber())
return 0;
539 if ((*other) == (*this))
return 0;
581 sql_type =
"INTEGER";
583 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 HasSameValueAs(const KVNamedParameter &) const
const Char_t * GetString() const
KVNamedParameter()
Default constructor.
void Set(const char *, const char *)
Bool_t IsEqual(const TObject *obj) const override
void Print(Option_t *opt="") const override
void Add(const KVNamedParameter &p)
Bool_t operator==(const KVNamedParameter &) const
const Char_t * GetSQLType() const
Double_t GetDouble() const
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
Int_t Compare(const TObject *obj) const override
Compares numerical parameters for sorting lists (such as KVNameValueList)
virtual ~KVNamedParameter()
Destructor.
void Clear(Option_t *="") override
Removes the name and any assigned value.
void ls(Option_t *opt="") const override
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)