From 34ec2d7b623dcff70d4d644ec84f8e0998ee6ae5 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Sat, 7 Oct 2023 13:04:21 -0700 Subject: [PATCH] change namespace to just Utils --- OdbDesignApp/OdbDesignApp.cpp | 6 +++--- OdbDesignServer/OdbDesignServerApp.cpp | 4 ++-- OdbDesignServer/OdbDesignServerApp.h | 2 +- Utils/ExitCode.h | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/OdbDesignApp/OdbDesignApp.cpp b/OdbDesignApp/OdbDesignApp.cpp index 31ab7e96..e8eaae46 100644 --- a/OdbDesignApp/OdbDesignApp.cpp +++ b/OdbDesignApp/OdbDesignApp.cpp @@ -20,7 +20,7 @@ int main() auto success = TestRigidFlexDesign(); if (!success) { - return (int) Lib::Utils::ExitCode::UnknownError; + return (int) Utils::ExitCode::UnknownError; } //std::cout << "success!" << std::endl; @@ -28,12 +28,12 @@ int main() success = TestSampleDesign(); if (!success) { - return (int) Lib::Utils::ExitCode::UnknownError; + return (int) Utils::ExitCode::UnknownError; } //std::cout << "success!" << std::endl; - return (int) Lib::Utils::ExitCode::Success; + return (int) Utils::ExitCode::Success; } bool TestSampleDesign() diff --git a/OdbDesignServer/OdbDesignServerApp.cpp b/OdbDesignServer/OdbDesignServerApp.cpp index 076d3fc6..cd57c06c 100644 --- a/OdbDesignServer/OdbDesignServerApp.cpp +++ b/OdbDesignServer/OdbDesignServerApp.cpp @@ -20,7 +20,7 @@ namespace Odb::App::Server m_vecArgv.clear(); } - ExitCode OdbDesignServerApp::Run() + Utils::ExitCode OdbDesignServerApp::Run() { //m_crowApp.loglevel(crow::LogLevel::Debug); @@ -30,7 +30,7 @@ namespace Odb::App::Server // run the server m_crowApp.port(18080).multithreaded().run(); - return ExitCode::Success; + return Utils::ExitCode::Success; } void DefineRoutes(crow::SimpleApp& app) diff --git a/OdbDesignServer/OdbDesignServerApp.h b/OdbDesignServer/OdbDesignServerApp.h index 03a6acf3..f155cc7e 100644 --- a/OdbDesignServer/OdbDesignServerApp.h +++ b/OdbDesignServer/OdbDesignServerApp.h @@ -14,7 +14,7 @@ namespace Odb::App::Server OdbDesignServerApp(int argc, char* argv[]); ~OdbDesignServerApp(); - ExitCode Run(); + Utils::ExitCode Run(); private: crow::SimpleApp m_crowApp; diff --git a/Utils/ExitCode.h b/Utils/ExitCode.h index c9df6415..023e06d0 100644 --- a/Utils/ExitCode.h +++ b/Utils/ExitCode.h @@ -1,7 +1,7 @@ #pragma once -namespace Lib::Utils +namespace Utils { enum class ExitCode {