Pass options to Engine; add Engine::run()
This commit is contained in:
1 parent
c05f2b1b59
commit
94105a883f
4 files changed
+18
-5
No files matched your search
+7
-1
@@ -1,5 +1,11 @@
|
||||
#include <fart/Engine.h>
|
||||
|
||||
Engine::Engine()
|
||||
Engine::Engine(const Options & options)
|
||||
: options(options)
|
||||
{
|
||||
}
|
||||
|
||||
int Engine::run()
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
+7
-1
@@ -1,7 +1,13 @@
|
||||
#pragma once
|
||||
|
||||
#include <fart/Options.h>
|
||||
|
||||
class Engine
|
||||
{
|
||||
public:
|
||||
Engine();
|
||||
Engine(const Options & options);
|
||||
int run();
|
||||
|
||||
protected:
|
||||
Options options;
|
||||
};
|
||||
@@ -1,3 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
#include <stddef.h>
|
||||
#include <string>
|
||||
|
||||
|
||||
+2
-3
@@ -10,7 +10,6 @@ int main(int argc, char * argv[])
|
||||
{
|
||||
return rc - 1;
|
||||
}
|
||||
Engine engine;
|
||||
printf("Hello\n");
|
||||
return 0;
|
||||
Engine engine(cli.options);
|
||||
return engine.run();
|
||||
}
|
||||
Reference in new issue
Block a user