32 auto cur = strm.tellg();
33 strm.seekg(0, std::ios::end);
34 auto end = strm.tellg();
42 Error(
"TString::ReadFile",
"file size too large (%lld, max = %d), clamping", fileSize,
MaxSize());
113 if (!strm.good())
break;
146 (hitSpace = isspace(
static_cast<unsigned char>(
c))) == 0) {
180 if (os.tie()) os.tie()->flush();
185 long flags = os.flags();
186 if (
wid && !(flags & std::ios::left))
189 if (
wid && (flags & std::ios::left))
193 if (os.flags() & std::ios::unitbuf)
212 if (fgets(buf,
sizeof(buf), fp) ==
nullptr)
break;
215 }
while (!ferror(fp) && !feof(fp) && strchr(buf,
'\n') ==
nullptr);
TBuffer & operator<<(TBuffer &buf, const Tmpl *obj)
std::istream & operator>>(std::istream &strm, TString &s)
Read string from stream.
void Error(const char *location, const char *msgfmt,...)
Use this function in case an error occurred.
winID h TVirtualViewer3D TVirtualGLPainter p
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize wid
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 r
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 UChar_t len
Bool_t Gets(FILE *fp, Bool_t chop=kTRUE)
Read one line from the stream, including the \n, or until EOF.
std::istream & ReadToDelim(std::istream &str, char delim='\n')
Read up to an EOF, or a delimiting character, whichever comes first.
Bool_t EndsWith(const char *pat, ECaseCompare cmp=kExact) const
Return true if string ends with the specified string.
const char * Data() const
static TString * ReadString(TBuffer &b, const TClass *clReq)
Read TString object from buffer.
static Ssiz_t AdjustCapacity(Ssiz_t oldCap, Ssiz_t newCap)
Calculate a nice capacity greater than or equal to newCap.
void Puts(FILE *fp)
Write string to the stream.
std::istream & ReadFile(std::istream &str)
Replace string with the contents of strm, stopping at an EOF.
Ssiz_t Clobber(Ssiz_t nc)
Clear string and make sure it has a capacity of nc.
std::istream & ReadToken(std::istream &str)
Read a token, delimited by whitespace, from the input stream.
std::istream & ReadLine(std::istream &str, Bool_t skipWhite=kTRUE)
Read a line from stream upto newline skipping any whitespace.