53 if(!isValidString(value)) {
55 <<
"): initial contents too long and ignored" << endl ;
57 strlcpy(_value,value,_len) ;
87 RooStringVar::operator TString()
138 TString token,errorPrefix(
"RooStringVar::readFromStream(") ;
139 errorPrefix.Append(
GetName()) ;
140 errorPrefix.Append(
")") ;
155 <<
"): new string too long and ignored" << endl ;
virtual const char * GetName() const
Returns name of object.
std::string GetName(const std::string &scope_name)
virtual const char * getVal() const
Return value of object. Calculated if dirty, otherwise cached value is returned.
virtual void setVal(const char *newVal)
Set value to given TString.
virtual Bool_t isValidString(const char *, Bool_t printError=kFALSE) const
Check if given string value is valid.
virtual RooAbsArg & operator=(const char *newValue)
Set value to given TString.
TString readLine()
Read an entire line from the stream and return as TString This method recognizes the use of '\' in th...
virtual void writeToStream(std::ostream &os, Bool_t compact) const
Write object contents to given stream.
Bool_t readString(TString &value, Bool_t zapOnError=kFALSE)
Read a string token.
virtual ~RooStringVar()
Destructor.
RooAbsString is the common abstract base class for objects that represent a string value...
virtual Bool_t readFromStream(std::istream &is, Bool_t compact, Bool_t verbose=kFALSE)
Read object contents from given stream.
RooAbsArg is the common abstract base class for objects that represent a value (of arbitrary type) an...
RooStringVar implements a string values RooAbsArg.