root: macro: web: namespace refactor into common
This commit is contained in:
@@ -36,16 +36,16 @@ namespace docker_finance
|
|||||||
//! \since docker-finance 1.0.0
|
//! \since docker-finance 1.0.0
|
||||||
namespace macro
|
namespace macro
|
||||||
{
|
{
|
||||||
//! \namespace docker_finance::macro::internal
|
//! \namespace docker_finance::macro::common
|
||||||
//! \brief ROOT macros for internal use only
|
//! \brief Shared ROOT macro-related functionality
|
||||||
//! \since docker-finance 1.0.0
|
//! \since docker-finance 1.0.0
|
||||||
namespace internal
|
namespace common
|
||||||
{
|
{
|
||||||
//! \brief HTTP Server instance
|
//! \brief HTTP Server instance
|
||||||
//! \note In namespace scope because of ROOT's static functions requirement
|
//! \note In namespace scope because of ROOT's static functions requirement
|
||||||
//! \since docker-finance 1.0.0
|
//! \since docker-finance 1.0.0
|
||||||
auto g_HTTPServer = std::make_unique<::THttpServer>("http:8080");
|
auto g_HTTPServer = std::make_unique<::THttpServer>("http:8080");
|
||||||
} // namespace internal
|
} // namespace common
|
||||||
} // namespace macro
|
} // namespace macro
|
||||||
} // namespace docker_finance
|
} // namespace docker_finance
|
||||||
|
|
||||||
|
|||||||
@@ -61,16 +61,15 @@ class Server final
|
|||||||
static void register_commands()
|
static void register_commands()
|
||||||
{
|
{
|
||||||
namespace common = ::docker_finance::macro::common;
|
namespace common = ::docker_finance::macro::common;
|
||||||
namespace internal = ::docker_finance::macro::internal;
|
|
||||||
|
|
||||||
common::Command::load({"web/internal/crypto.C"});
|
common::Command::load({"web/internal/crypto.C"});
|
||||||
internal::g_HTTPServer->RegisterCommand(
|
common::g_HTTPServer->RegisterCommand(
|
||||||
"/rng_sample",
|
"/rng_sample",
|
||||||
"::docker_finance::macro::web::internal::Random::rng_sample(\"%arg1%"
|
"::docker_finance::macro::web::internal::Random::rng_sample(\"%arg1%"
|
||||||
"\")");
|
"\")");
|
||||||
|
|
||||||
common::Command::load({"web/internal/meta.C"});
|
common::Command::load({"web/internal/meta.C"});
|
||||||
internal::g_HTTPServer->RegisterCommand(
|
common::g_HTTPServer->RegisterCommand(
|
||||||
"/meta_sample",
|
"/meta_sample",
|
||||||
"::docker_finance::macro::web::internal::Meta::meta_sample(\"%arg1%"
|
"::docker_finance::macro::web::internal::Meta::meta_sample(\"%arg1%"
|
||||||
"\")");
|
"\")");
|
||||||
|
|||||||
Reference in New Issue
Block a user