container: root: macro: rootlogon.C: update usage

API headers are now loaded automatically.
This commit is contained in:
2024-07-17 00:36:21 -07:00
parent 8d2389bee2
commit de81ebac84

View File

@@ -60,39 +60,39 @@ void help()
<< " of Crypto++-generated cryptographically secure random\n" << " of Crypto++-generated cryptographically secure random\n"
<< " numbers:\n" << " numbers:\n"
<< "\n" << "\n"
<< " root [0] #include \"../src/hash.hh\"\n" << " root [0] using g_Random = "
<< " root [1] #include \"../src/random.hh\"\n"
<< " root [2] using g_Random = "
"docker_finance::crypto::cryptopp::Random;\n" "docker_finance::crypto::cryptopp::Random;\n"
<< " root [3] using g_Hash = " << " root [1] using g_Hash = "
"docker_finance::crypto::libsodium::Hash;\n" "docker_finance::crypto::libsodium::Hash;\n"
<< " root [4] g_Random r; g_Hash h;\n" << " root [2] g_Random r; g_Hash h;\n"
<< " root [5] for (size_t i{}; i < " << " root [3] for (size_t i{}; i < "
"std::numeric_limits<uint8_t>::max(); i++) {\n" "std::numeric_limits<uint8_t>::max(); i++) {\n"
<< " root (cont'ed, cancel with .@) [6] uint32_t num = " << " root (cont'ed, cancel with .@) [4] uint32_t num = "
"r.generate();\n" "r.generate();\n"
<< " root (cont'ed, cancel with .@) [7] std::cout << " << " root (cont'ed, cancel with .@) [5] std::cout << "
"h.encode<g_Hash::SHA2_256>(num) << \" = \" << num << \"\\n\"; }\n" "h.encode<g_Hash::SHA2_256>(num)\n"
<< " root (cont'ed, cancel with .@) [6] << \" = \" << num << "
"\"\\n\";\n"
<< " root (cont'ed, cancel with .@) [7] }\n"
<< "\n" << "\n"
<< " Note: generate Doxygen to see all supported cryptographic\n" << " Note: generate Doxygen to see all supported cryptographic\n"
<< " libraries and hash types.\n" << " libraries and hash types.\n"
<< "\n" << "\n"
<< " 2. Use Tools utility\n" << " 2. Use Tools utility\n"
<< "\n" << "\n"
<< " root [0] #include \"../src/utility.hh\"\n" << " root [0] docker_finance::utility::Tools tools;\n"
<< " root [1] docker_finance::utility::Tools tools;\n"
<< "\n" << "\n"
<< " // Create a variable within interpreter\n" << " // Create a variable within interpreter\n"
<< " root [2] btc=0.87654321+0.12345678+0.00000078\n" << " root [1] btc=0.87654321+0.12345678+0.00000078\n"
<< " (double) 1.0000008\n" << " (double) 1.0000008\n"
<< "\n" << "\n"
<< " // Print variable up to N decimal places\n" << " // Print variable up to N decimal places\n"
<< " root [3] tools.print_value<double>(btc, 8);\n" << " root [2] tools.print_value<double>(btc, 8);\n"
<< " 1.00000077\n" << " 1.00000077\n"
<< "\n" << "\n"
<< " // Use tab autocomplete for class members to print random\n" << " // Use tab autocomplete for class members to print random\n"
<< " // numbers within given intervals\n" << " // numbers within given intervals\n"
<< " root [4] " << " root [3] "
"tools.print_dist<TRandomGen<ROOT::Math::MixMaxEngine<240, 0> >, " "tools.print_dist<TRandomGen<ROOT::Math::MixMaxEngine<240, 0> >, "
"double>(0.1, btc);\n" "double>(0.1, btc);\n"
<< " 0.13787670\n" << " 0.13787670\n"
@@ -121,7 +121,7 @@ void help()
<< "Help:\n" << "Help:\n"
<< "\n" << "\n"
<< " 1. Print ROOT's help usage\n" << " 1. Print ROOT's help usage\n"
<< " root [1] .help\n" << " root [0] .help\n"
<< "\n" << "\n"
<< " 2. Print this help usage\n" << " 2. Print this help usage\n"
<< " root [0] help()\n" << " root [0] help()\n"