53 if(!isValidString(value)) {
55 <<
"): initial contents too long and ignored" << endl ;
57 strlcpy(_value,value,_len) ;
138 TString token,errorPrefix(
"RooStringVar::readFromStream(") ;
155 <<
"): new string too long and ignored" << endl ;
virtual Bool_t isValidString(const char *, Bool_t printError=kFALSE) const
Check if given string value is valid.
virtual void setVal(const char *newVal)
Set value to given TString.
TString & Append(const char *cs)
ClassImp(RooStringVar) RooStringVar
Constructor with initial value and internal buffer size.
TPaveLabel title(3, 27.1, 15, 28.7,"ROOT Environment and Tools")
virtual RooAbsArg & operator=(const char *newValue)
Set value to given TString.
virtual const char * GetName() const
Returns name of object.
TString readLine()
Read an entire line from the stream and return as TString This method recognizes the use of '\' in th...
Bool_t readString(TString &value, Bool_t zapOnError=kFALSE)
Read a string token.
virtual ~RooStringVar()
Destructor.
virtual const char * getVal() const
Return value of object. Calculated if dirty, otherwise cached value is returned.
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.
virtual void writeToStream(std::ostream &os, Bool_t compact) const
Write object contents to given stream.