forked from EvergreenCrypto/docker-finance
container: c++: dfi namespace refactor
Align with project alias, save the eyes and hands.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
// docker-finance | modern accounting for the power-user
|
||||
//
|
||||
// Copyright (C) 2021-2024 Aaron Fiore (Founder, Evergreen Crypto LLC)
|
||||
// Copyright (C) 2021-2025 Aaron Fiore (Founder, Evergreen Crypto LLC)
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
@@ -28,27 +28,27 @@
|
||||
#include "../../src/hash.hh"
|
||||
#include "../../src/random.hh"
|
||||
|
||||
//! \namespace docker_finance
|
||||
//! \namespace dfi
|
||||
//! \since docker-finance 1.0.0
|
||||
namespace docker_finance
|
||||
namespace dfi
|
||||
{
|
||||
//! \namespace docker_finance::macro
|
||||
//! \namespace dfi::macro
|
||||
//! \brief ROOT macros
|
||||
//! \since docker-finance 1.0.0
|
||||
namespace macro
|
||||
{
|
||||
//! \namespace docker_finance::macro::common
|
||||
//! \namespace dfi::macro::common
|
||||
//! \brief Shared ROOT macro-related functionality
|
||||
//! \since docker-finance 1.0.0
|
||||
namespace common
|
||||
{
|
||||
//! \namespace docker_finance::macro::common::crypto::botan
|
||||
//! \namespace dfi::macro::common::crypto::botan
|
||||
//! \since docker-finance 1.0.0
|
||||
namespace crypto::botan
|
||||
{
|
||||
//! \brief ROOT's Botan Hash class
|
||||
//! \ingroup cpp_macro
|
||||
using Hash = ::docker_finance::crypto::botan::Hash;
|
||||
using Hash = ::dfi::crypto::botan::Hash;
|
||||
|
||||
//! \brief ROOT's Botan Hash instance
|
||||
//! \ingroup cpp_macro
|
||||
@@ -56,20 +56,20 @@ auto g_Hash = std::make_unique<Hash>();
|
||||
|
||||
//! \brief ROOT's Botan Random class
|
||||
//! \ingroup cpp_macro
|
||||
using Random = ::docker_finance::crypto::botan::Random;
|
||||
using Random = ::dfi::crypto::botan::Random;
|
||||
|
||||
//! \brief ROOT's Botan Random instance
|
||||
//! \ingroup cpp_macro
|
||||
auto g_Random = std::make_unique<Random>();
|
||||
} // namespace crypto::botan
|
||||
|
||||
//! \namespace docker_finance::macro::common::crypto::cryptopp
|
||||
//! \namespace dfi::macro::common::crypto::cryptopp
|
||||
//! \since docker-finance 1.0.0
|
||||
namespace crypto::cryptopp
|
||||
{
|
||||
//! \brief ROOT's Crypto++ Hash class
|
||||
//! \ingroup cpp_macro
|
||||
using Hash = ::docker_finance::crypto::cryptopp::Hash;
|
||||
using Hash = ::dfi::crypto::cryptopp::Hash;
|
||||
|
||||
//! \brief ROOT's Crypto++ Hash instance
|
||||
//! \ingroup cpp_macro
|
||||
@@ -77,20 +77,20 @@ auto g_Hash = std::make_unique<Hash>();
|
||||
|
||||
//! \brief ROOT's Crypto++ Random class
|
||||
//! \ingroup cpp_macro
|
||||
using Random = ::docker_finance::crypto::cryptopp::Random;
|
||||
using Random = ::dfi::crypto::cryptopp::Random;
|
||||
|
||||
//! \brief ROOT's Crypto++ Random instance
|
||||
//! \ingroup cpp_macro
|
||||
auto g_Random = std::make_unique<Random>();
|
||||
} // namespace crypto::cryptopp
|
||||
|
||||
//! \namespace docker_finance::macro::common::crypto::libsodium
|
||||
//! \namespace dfi::macro::common::crypto::libsodium
|
||||
//! \since docker-finance 1.0.0
|
||||
namespace crypto::libsodium
|
||||
{
|
||||
//! \brief ROOT's libsodium Hash class
|
||||
//! \ingroup cpp_macro
|
||||
using Hash = ::docker_finance::crypto::libsodium::Hash;
|
||||
using Hash = ::dfi::crypto::libsodium::Hash;
|
||||
|
||||
//! \brief ROOT's libsodium Hash instance
|
||||
//! \ingroup cpp_macro
|
||||
@@ -98,7 +98,7 @@ auto g_Hash = std::make_unique<Hash>();
|
||||
|
||||
//! \brief ROOT's libsodium Random class
|
||||
//! \ingroup cpp_macro
|
||||
using Random = ::docker_finance::crypto::libsodium::Random;
|
||||
using Random = ::dfi::crypto::libsodium::Random;
|
||||
|
||||
//! \brief ROOT's libsodium Random instance
|
||||
//! \ingroup cpp_macro
|
||||
@@ -107,7 +107,7 @@ auto g_Random = std::make_unique<Random>();
|
||||
|
||||
} // namespace common
|
||||
} // namespace macro
|
||||
} // namespace docker_finance
|
||||
} // namespace dfi
|
||||
|
||||
#endif // CONTAINER_SRC_ROOT_MACRO_COMMON_CRYPTO_HH_
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// docker-finance | modern accounting for the power-user
|
||||
//
|
||||
// Copyright (C) 2021-2024 Aaron Fiore (Founder, Evergreen Crypto LLC)
|
||||
// Copyright (C) 2021-2025 Aaron Fiore (Founder, Evergreen Crypto LLC)
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
@@ -27,16 +27,16 @@
|
||||
|
||||
#include <memory>
|
||||
|
||||
//! \namespace docker_finance
|
||||
//! \namespace dfi
|
||||
//! \since docker-finance 1.0.0
|
||||
namespace docker_finance
|
||||
namespace dfi
|
||||
{
|
||||
//! \namespace docker_finance::macro
|
||||
//! \namespace dfi::macro
|
||||
//! \brief ROOT macros
|
||||
//! \since docker-finance 1.0.0
|
||||
namespace macro
|
||||
{
|
||||
//! \namespace docker_finance::macro::common
|
||||
//! \namespace dfi::macro::common
|
||||
//! \brief Shared ROOT macro-related functionality
|
||||
//! \since docker-finance 1.0.0
|
||||
namespace common
|
||||
@@ -47,7 +47,7 @@ namespace common
|
||||
auto g_HTTPServer = std::make_unique<::THttpServer>("http:8080");
|
||||
} // namespace common
|
||||
} // namespace macro
|
||||
} // namespace docker_finance
|
||||
} // namespace dfi
|
||||
|
||||
#endif // CONTAINER_SRC_ROOT_MACRO_COMMON_SERVER_HH_
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// docker-finance | modern accounting for the power-user
|
||||
//
|
||||
// Copyright (C) 2021-2024 Aaron Fiore (Founder, Evergreen Crypto LLC)
|
||||
// Copyright (C) 2021-2025 Aaron Fiore (Founder, Evergreen Crypto LLC)
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
@@ -29,16 +29,16 @@
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
//! \namespace docker_finance
|
||||
//! \namespace dfi
|
||||
//! \since docker-finance 1.0.0
|
||||
namespace docker_finance
|
||||
namespace dfi
|
||||
{
|
||||
//! \namespace docker_finance::macro
|
||||
//! \namespace dfi::macro
|
||||
//! \brief ROOT macros
|
||||
//! \since docker-finance 1.0.0
|
||||
namespace macro
|
||||
{
|
||||
//! \namespace docker_finance::macro::common
|
||||
//! \namespace dfi::macro::common
|
||||
//! \brief Shared ROOT macro-related functionality
|
||||
//! \since docker-finance 1.0.0
|
||||
namespace common
|
||||
@@ -122,7 +122,7 @@ std::string make_timestamp()
|
||||
//! \ingroup cpp_macro
|
||||
//! \details
|
||||
//! Example:
|
||||
//! <br>  root [0] docker_finance::macro::load("test/unit.C")<br>
|
||||
//! <br>  root [0] dfi::macro::load("test/unit.C")<br>
|
||||
//!
|
||||
//! Will load:
|
||||
//! <br>  root/macro/test/unit.C<br>
|
||||
@@ -137,7 +137,7 @@ void load(const std::string& path)
|
||||
//! \ingroup cpp_macro
|
||||
//! \details
|
||||
//! Example:
|
||||
//! <br>  root [0] docker_finance::macro::load({"test/unit.C", "../src/hash.hh"})<br>
|
||||
//! <br>  root [0] dfi::macro::load({"test/unit.C", "../src/hash.hh"})<br>
|
||||
//!
|
||||
//! Will load:
|
||||
//! <br>  root/macro/test/unit.C and root/src/hash.hh<br>
|
||||
@@ -150,7 +150,7 @@ void load(const std::initializer_list<std::string>& paths)
|
||||
}
|
||||
} // namespace macro
|
||||
|
||||
//! \namespace docker_finance::plugin
|
||||
//! \namespace dfi::plugin
|
||||
//! \brief docker-finance plugins
|
||||
//! \warning All plugins (repo/custom) must exist within this namespace
|
||||
//! and work within their own inner namespace
|
||||
@@ -165,13 +165,13 @@ namespace plugin
|
||||
//! \ingroup cpp_plugin
|
||||
//! \details
|
||||
//! Example:
|
||||
//! <br>  root [0] docker_finance::plugin::load("repo/example.cc")<br>
|
||||
//! <br>  root [0] dfi::plugin::load("repo/example.cc")<br>
|
||||
//!
|
||||
//! Will load:
|
||||
//! <br>  ${DOCKER_FINANCE_CONTAINER_REPO}/plugins/root/example.cc<br>
|
||||
//!
|
||||
//! Example:
|
||||
//! <br>  root [0] docker_finance::plugin::load("custom/example.cc")<br>
|
||||
//! <br>  root [0] dfi::plugin::load("custom/example.cc")<br>
|
||||
//!
|
||||
//! Will load:
|
||||
//! <br>  ${DOCKER_FINANCE_CLIENT_PLUGINS}/root/example.cc<br>
|
||||
@@ -214,7 +214,7 @@ void load(const std::string& path)
|
||||
//! a client-side end-user's custom plugin path.
|
||||
//! \details
|
||||
//! Example:
|
||||
//! <br>  root [0] docker_finance::plugin::load({"repo/example.cc", "custom/example.cc"})<br>
|
||||
//! <br>  root [0] dfi::plugin::load({"repo/example.cc", "custom/example.cc"})<br>
|
||||
//!
|
||||
//! Will load:
|
||||
//! <br>  ${DOCKER_FINANCE_CONTAINER_REPO}/plugins/root/example.cc
|
||||
@@ -227,7 +227,7 @@ void load(const std::initializer_list<std::string>& paths)
|
||||
macro::common::Command::load(path);
|
||||
}
|
||||
} // namespace plugin
|
||||
} // namespace docker_finance
|
||||
} // namespace dfi
|
||||
|
||||
#endif // CONTAINER_SRC_ROOT_MACRO_COMMON_UTILITY_HH_
|
||||
|
||||
|
||||
Reference in New Issue
Block a user