Skip to content

Commit

Permalink
change namespace to just Utils
Browse files Browse the repository at this point in the history
  • Loading branch information
nam20485 committed Oct 7, 2023
1 parent 07a57ea commit 34ec2d7
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions OdbDesignApp/OdbDesignApp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,20 @@ int main()
auto success = TestRigidFlexDesign();
if (!success)
{
return (int) Lib::Utils::ExitCode::UnknownError;
return (int) Utils::ExitCode::UnknownError;
}

//std::cout << "success!" << std::endl;

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()
Expand Down
4 changes: 2 additions & 2 deletions OdbDesignServer/OdbDesignServerApp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ namespace Odb::App::Server
m_vecArgv.clear();
}

ExitCode OdbDesignServerApp::Run()
Utils::ExitCode OdbDesignServerApp::Run()
{
//m_crowApp.loglevel(crow::LogLevel::Debug);

Expand All @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion OdbDesignServer/OdbDesignServerApp.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ namespace Odb::App::Server
OdbDesignServerApp(int argc, char* argv[]);
~OdbDesignServerApp();

ExitCode Run();
Utils::ExitCode Run();

private:
crow::SimpleApp m_crowApp;
Expand Down
2 changes: 1 addition & 1 deletion Utils/ExitCode.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#pragma once


namespace Lib::Utils
namespace Utils
{
enum class ExitCode
{
Expand Down

0 comments on commit 34ec2d7

Please sign in to comment.