Definition at line 4808 of file mjsonrpc.cxx.
◆ Clear()
void NestedOutput::Clear |
( |
| ) |
|
|
inline |
Definition at line 4813 of file mjsonrpc.cxx.
4814 {
4816 }
std::vector< NestedLine > fLines
◆ Output()
void NestedOutput::Output |
( |
int |
nest, |
|
|
bool |
span, |
|
|
std::string |
text |
|
) |
| |
|
inline |
Definition at line 4818 of file mjsonrpc.cxx.
4819 {
4820 if (text.length() < 1)
4821 return;
4822
4828 };
◆ Print()
std::string NestedOutput::Print |
( |
| ) |
|
|
inline |
Definition at line 4830 of file mjsonrpc.cxx.
4831 {
4833 std::vector<std::string>
tab;
4834 std::vector<std::string>
tabx;
4835
4839
4840 std::string
xtab =
"";
4842 for (
int n=0; ;
n++) {
4843 int len = -1;
4844 for (
unsigned i=0;
i<
fLines.size();
i++) {
4848 continue;
4850 continue;
4851 int l =
fLines[
i].text.length();
4852 if (l>len)
4853 len = l;
4854 }
4855
4856 if (len < 0)
4857 break;
4859 tab.push_back(
indent(len,
" ") +
" | ");
4863 }
4864
4865 std::string s;
4866 int nest = 0;
4867
4868 for (
unsigned i=0;
i<
fLines.size();
i++) {
4871
4873
4874 if (!p) {
4877 }
4878
4880
4882 s += std::string(
" | ") +
fLines[
i].text +
pad;
4883 else if (
n == nest) {
4884 s += "\n";
4885 if (
n == 0 ||
n == 1)
4888 } else {
4889 s += "\n";
4890 if (
n == 0 ||
n == 1)
4893 }
4894
4896 }
4897
4898 return s;
4899 }
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: