Definition at line 4809 of file mjsonrpc.cxx.
◆ Clear()
void NestedOutput::Clear |
( |
| ) |
|
|
inline |
Definition at line 4814 of file mjsonrpc.cxx.
4815 {
4817 }
std::vector< NestedLine > fLines
◆ Output()
void NestedOutput::Output |
( |
int |
nest, |
|
|
bool |
span, |
|
|
std::string |
text |
|
) |
| |
|
inline |
Definition at line 4819 of file mjsonrpc.cxx.
4820 {
4821 if (text.length() < 1)
4822 return;
4823
4829 };
◆ Print()
std::string NestedOutput::Print |
( |
| ) |
|
|
inline |
Definition at line 4831 of file mjsonrpc.cxx.
4832 {
4834 std::vector<std::string>
tab;
4835 std::vector<std::string>
tabx;
4836
4840
4841 std::string
xtab =
"";
4843 for (
int n=0; ;
n++) {
4844 int len = -1;
4845 for (
unsigned i=0;
i<
fLines.size();
i++) {
4849 continue;
4851 continue;
4852 int l =
fLines[
i].text.length();
4853 if (l>len)
4854 len = l;
4855 }
4856
4857 if (len < 0)
4858 break;
4860 tab.push_back(
indent(len,
" ") +
" | ");
4864 }
4865
4866 std::string s;
4867 int nest = 0;
4868
4869 for (
unsigned i=0;
i<
fLines.size();
i++) {
4872
4874
4875 if (!p) {
4878 }
4879
4881
4883 s += std::string(
" | ") +
fLines[
i].text +
pad;
4884 else if (
n == nest) {
4885 s += "\n";
4886 if (
n == 0 ||
n == 1)
4889 } else {
4890 s += "\n";
4891 if (
n == 0 ||
n == 1)
4894 }
4895
4897 }
4898
4899 return s;
4900 }
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: