OdbDesignLib
OdbDesign ODB++ Parsing Library
OdbAppBase.h
1 #pragma once
2 
3 #include "IOdbServerApp.h"
4 #include "DesignCache.h"
5 #include "OdbDesignArgs.h"
6 #include "../odbdesign_export.h"
7 
8 namespace Odb::Lib::App
9 {
10  class ODBDESIGN_EXPORT OdbAppBase : public virtual IOdbApp
11  {
12  public:
13  OdbAppBase(int argc, char* argv[]);
14  virtual ~OdbAppBase();
15 
16  const OdbDesignArgs& args() const override;
17  DesignCache& designs() override;
18 
19  virtual Utils::ExitCode Run() override;
20 
21  inline static const char* DEFAULT_DESIGNS_DIR = "designs";
22 
23  protected:
24  DesignCache m_designCache;
25  const OdbDesignArgs m_commandLineArgs;
26 
27  };
28 }