25 #include <boost/program_options.hpp>
26 #include <boost/thread.hpp>
33 namespace po = boost::program_options;
53 public:
bool ParseArgs(
int argc,
char **argv);
55 public:
bool Load(
const std::string &_filename=
"worlds/empty.world");
65 private:
static void SigInt(
int _v);
67 private:
void ProcessParams();
69 private:
void OnControl(ConstServerControlPtr &_msg);
71 private:
bool OpenWorld(
const std::string &_filename);
73 private:
void ProcessControlMsgs();
75 private:
static bool stop;
78 private: boost::thread *masterThread;
83 private: boost::mutex *receiveMutex;
84 private: std::list<msgs::ServerControl> controlMsgs;
85 private: std::map<std::string, std::string> worldFilenames;
88 private: po::variables_map vm;