Definition at line 4821 of file mjsonrpc.cxx.
◆ Clear()
void NestedOutput::Clear |
( |
| ) |
|
|
inline |
Definition at line 4826 of file mjsonrpc.cxx.
4827 {
4829 }
std::vector< NestedLine > fLines
◆ Output()
void NestedOutput::Output |
( |
int |
nest, |
|
|
bool |
span, |
|
|
std::string |
text |
|
) |
| |
|
inline |
Definition at line 4831 of file mjsonrpc.cxx.
4832 {
4833 if (text.length() < 1)
4834 return;
4835
4841 };
◆ Print()
std::string NestedOutput::Print |
( |
| ) |
|
|
inline |
Definition at line 4843 of file mjsonrpc.cxx.
4844 {
4846 std::vector<std::string>
tab;
4847 std::vector<std::string>
tabx;
4848
4852
4853 std::string
xtab =
"";
4855 for (
int n=0; ;
n++) {
4856 int len = -1;
4857 for (
unsigned i=0;
i<
fLines.size();
i++) {
4861 continue;
4863 continue;
4864 int l =
fLines[
i].text.length();
4865 if (l>len)
4866 len = l;
4867 }
4868
4869 if (len < 0)
4870 break;
4872 tab.push_back(
indent(len,
" ") +
" | ");
4876 }
4877
4878 std::string s;
4879 int nest = 0;
4880
4881 for (
unsigned i=0;
i<
fLines.size();
i++) {
4884
4886
4887 if (!p) {
4890 }
4891
4893
4895 s += std::string(
" | ") +
fLines[
i].text +
pad;
4896 else if (
n == nest) {
4897 s += "\n";
4898 if (
n == 0 ||
n == 1)
4901 } else {
4902 s += "\n";
4903 if (
n == 0 ||
n == 1)
4906 }
4907
4909 }
4910
4911 return s;
4912 }
static std::string indent(int x, const char *p=" ")
TH1X EXPRT * h1_book(const char *name, const char *title, int bins, double min, double max)
◆ fLines
The documentation for this class was generated from the following file: