64static const char*
const here =
"THaVar";
74 VarType
type = Vars::FindType(
typeid(
T) );
75 if(
type >= kIntV &&
type <= kDoubleV ) {
77 Warning(
here,
"Ignoring size counter for std::vector variable %s",
name );
80 else if(
type != kVarTypeEnd ) {
104 if(
type == kObject ||
type == kObjectP ||
type == kObject2P ||
105 type == kObjectV ||
type == kObjectPV ) {
106 Error(
here,
"Variable %s: Object types not (yet) supported",
name );
110 else if(
type >= kIntM &&
type <= kDoubleM ) {
111 Error(
here,
"Variable %s: Matrix types not (yet) supported",
name );
115 else if(
type >= kIntV &&
type <= kDoubleV ) {
117 Warning(
here,
"Ignoring size counter for std::vector variable %s. "
118 "Fix code or call expert",
name );
123 if(
offset >= 0 || method ) {
124 Error(
here,
"Variable %s: Inconsistent arguments. Cannot specify "
125 "both count and offset/method",
name );
131 else if( method ||
offset >= 0 ) {
132 if( method &&
offset >= 0 ) {
134 Warning(
here,
"Variable %s: Offset > 0 ignored for method call on "
135 "object in collection. Fix code or call expert",
name );
161 Error(
here,
"Variable %s: Illegal type %s for data in std::vector "
162 "of objects",
name, Vars::GetTypeName(
type) );
166 else if( elem_size < 0 ||
offset < 0 ) {
167 Error(
here,
"Variable %s: Illegal parameters elem_size = %d, "
168 "offset = %d. Must be >= 0",
name, elem_size,
offset );
174 Warning(
here,
"Variable %s: Offset > 0 ignored for method call on "
const Long64_t kMaxLong64
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h offset
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t Atom_t Time_t type
static const char *const here
virtual Bool_t IsError() const
THaVar(const char *name, const char *descript, T &var, const Int_t *count=nullptr)
Int_t Index(const char *subscripts) const
static const Double_t kInvalid
static const Long64_t kInvalidInt
virtual void Warning(const char *method, const char *msgfmt,...) const
virtual void Error(const char *method, const char *msgfmt,...) const
const char * Data() const
TString & Append(char c, Ssiz_t rep=1)
Ssiz_t Index(const char *pat, Ssiz_t i=0, ECaseCompare cmp=kExact) const
unsigned long long ULong64_t