40 lines
950 B
C++
40 lines
950 B
C++
#include "lib/os/os.h"
|
|
|
|
#include "lib/utils/init_spark_lib.h"
|
|
#include "lib/os/os.h"
|
|
#include "server/sparkd/cmds/CmdRegistry.h"
|
|
#include "server/sparkd/cmds/Test.h"
|
|
#include "server/sparkd/cmds/Run.h"
|
|
#include "server/sparkd/cmds/Help.h"
|
|
#include "server/sparkd/cmds/TestOrderman.h"
|
|
#include "lib/logging/logging.h"
|
|
#include "server/sparkd/cmds/TestCeloxica.h"
|
|
|
|
#define BEGIN_CMD
|
|
#define REGISTER(CMD) bts::cmd::CmdRegistry::register_cmd<bts::cmd::CMD> (#CMD)
|
|
#define END_CMD return bts::cmd::CmdRegistry::dispatch (argc,argv)
|
|
|
|
int main( int argc, char*argv [] )
|
|
{
|
|
using namespace bts;
|
|
|
|
os::set_thread_name("main");
|
|
utils::init_spark_lib();
|
|
LOG(Gen,Warn,"Sparkd launched --------------------------------------------------------------------");
|
|
|
|
BEGIN_CMD;
|
|
REGISTER (Test);
|
|
REGISTER (Help);
|
|
REGISTER (Run);
|
|
REGISTER (TestOrderman);
|
|
REGISTER (TestCeloxica);
|
|
END_CMD;
|
|
|
|
utils::finit_spark_lib();
|
|
return 0;
|
|
}
|
|
|
|
|
|
|
|
|