Skip to content

Commit

Permalink
use forward declaration to allow RouteController's to have an instanc…
Browse files Browse the repository at this point in the history
…e of OdbDesignServerApp
  • Loading branch information
nam20485 committed Oct 12, 2023
1 parent 33174f6 commit 44dd7bc
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions OdbDesignServer/Controllers/HelloWorldController.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include "HelloWorldController.h"
#include "../OdbDesignServerApp.h"


namespace Odb::App::Server
Expand Down
3 changes: 3 additions & 0 deletions OdbDesignServer/Controllers/HelloWorldController.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@

namespace Odb::App::Server
{
// forward declaration
class OdbDesignServerApp;

class HelloWorldController : public RouteController
{
public:
Expand Down
1 change: 1 addition & 0 deletions OdbDesignServer/Controllers/StepsEdaDataController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include "EdaDataFile.h"
#include "JsonCrowReturnable.h"
#include <sstream>
#include "../OdbDesignServerApp.h"

using namespace Odb::Lib;
using namespace FileModel::Design;
Expand Down
3 changes: 3 additions & 0 deletions OdbDesignServer/Controllers/StepsEdaDataController.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@

namespace Odb::App::Server
{
// forward declaration
class OdbDesignServerApp;

class StepsEdaDataController : public RouteController
{
public:
Expand Down

0 comments on commit 44dd7bc

Please sign in to comment.