Line | |
---|
1 | #ifndef MARS_MString
|
---|
2 | #define MARS_MString
|
---|
3 |
|
---|
4 | #ifndef ROOT_TString
|
---|
5 | #include <TString.h>
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | #include <stdio.h>
|
---|
9 | #include <stdarg.h>
|
---|
10 |
|
---|
11 | class MString : public TString
|
---|
12 | {
|
---|
13 | public:
|
---|
14 | MString(const char *txt=0) : TString(txt) { }
|
---|
15 | MString(const MString &txt) : TString(txt) { }
|
---|
16 |
|
---|
17 | MString &Print(const char *fmt, va_list &ap);
|
---|
18 | MString &Print(const char *fmt, ...);
|
---|
19 |
|
---|
20 | #ifndef __CINT__
|
---|
21 | static MString Form(const char *fmt, ...);
|
---|
22 | #endif
|
---|
23 |
|
---|
24 | ClassDef(MString, 1) // Tool to make Form() thread safe against other TStrings
|
---|
25 | };
|
---|
26 |
|
---|
27 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.