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) 2024 Aaron Fiore (Founder, Evergreen Crypto LLC)
|
||||
// Copyright (C) 2024-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
|
||||
@@ -22,14 +22,14 @@
|
||||
|
||||
// NOTE: API headers are included by default
|
||||
|
||||
//! \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
|
||||
//! \since docker-finance 1.0.0
|
||||
namespace docker_finance::plugin
|
||||
namespace dfi::plugin
|
||||
{
|
||||
//! \namespace docker_finance::plugin::my_plugin_namespace
|
||||
//! \namespace dfi::plugin::my_plugin_namespace
|
||||
//! \brief docker-finance plugin example namespace
|
||||
//! \details An example namespace used only within this example file
|
||||
//! \warning Not a real namespace - for example purposes only
|
||||
@@ -43,8 +43,8 @@ namespace my_plugin_namespace
|
||||
//! \ingroup cpp_plugin_impl
|
||||
void example1()
|
||||
{
|
||||
using g_Random = docker_finance::crypto::cryptopp::Random;
|
||||
using g_Hash = docker_finance::crypto::libsodium::Hash;
|
||||
using g_Random = dfi::crypto::cryptopp::Random;
|
||||
using g_Hash = dfi::crypto::libsodium::Hash;
|
||||
g_Random r;
|
||||
g_Hash h;
|
||||
for (size_t i{}; i < std::numeric_limits<uint8_t>::max(); i++)
|
||||
@@ -59,7 +59,7 @@ void example1()
|
||||
//! \ingroup cpp_plugin_impl
|
||||
void example2()
|
||||
{
|
||||
namespace common = ::docker_finance::macro::common;
|
||||
namespace common = ::dfi::macro::common;
|
||||
|
||||
auto print_env = [](const std::string& env) {
|
||||
std::cout << env << "=" << common::get_env(env) << "\n";
|
||||
@@ -108,7 +108,7 @@ void example2()
|
||||
//! \ingroup cpp_plugin_impl
|
||||
void example3()
|
||||
{
|
||||
namespace common = ::docker_finance::macro::common;
|
||||
namespace common = ::dfi::macro::common;
|
||||
|
||||
const std::string base{
|
||||
common::get_env("global_basename") + " "
|
||||
@@ -139,6 +139,6 @@ void example3()
|
||||
}
|
||||
|
||||
} // namespace my_plugin_namespace
|
||||
} // namespace docker_finance::plugin
|
||||
} // namespace dfi::plugin
|
||||
|
||||
// # vim: sw=2 sts=2 si ai et
|
||||
|
||||
Reference in New Issue
Block a user