Definition at line 4811 of file mjsonrpc.cxx.
◆ Clear()
void NestedOutput::Clear |
( |
| ) |
|
|
inline |
Definition at line 4816 of file mjsonrpc.cxx.
4817 {
4819 }
std::vector< NestedLine > fLines
◆ Output()
void NestedOutput::Output |
( |
int |
nest, |
|
|
bool |
span, |
|
|
std::string |
text |
|
) |
| |
|
inline |
Definition at line 4821 of file mjsonrpc.cxx.
4822 {
4823 if (text.length() < 1)
4824 return;
4825
4831 };
◆ Print()
std::string NestedOutput::Print |
( |
| ) |
|
|
inline |
Definition at line 4833 of file mjsonrpc.cxx.
4834 {
4836 std::vector<std::string>
tab;
4837 std::vector<std::string>
tabx;
4838
4842
4843 std::string
xtab =
"";
4845 for (
int n=0; ;
n++) {
4846 int len = -1;
4847 for (
unsigned i=0;
i<
fLines.size();
i++) {
4851 continue;
4853 continue;
4854 int l =
fLines[
i].text.length();
4855 if (l>len)
4856 len = l;
4857 }
4858
4859 if (len < 0)
4860 break;
4862 tab.push_back(
indent(len,
" ") +
" | ");
4866 }
4867
4868 std::string s;
4869 int nest = 0;
4870
4871 for (
unsigned i=0;
i<
fLines.size();
i++) {
4874
4876
4877 if (!p) {
4880 }
4881
4883
4885 s += std::string(
" | ") +
fLines[
i].text +
pad;
4886 else if (
n == nest) {
4887 s += "\n";
4888 if (
n == 0 ||
n == 1)
4891 } else {
4892 s += "\n";
4893 if (
n == 0 ||
n == 1)
4896 }
4897
4899 }
4900
4901 return s;
4902 }
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: