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 LoadFile(
const std::string &_filename=
"worlds/empty.world");
56 public:
bool LoadString(
const std::string &_sdfString);
70 private:
static void SigInt(
int _v);
72 private:
void ProcessParams();
74 private:
void OnControl(ConstServerControlPtr &_msg);
76 private:
bool OpenWorld(
const std::string &_filename);
78 private:
void ProcessControlMsgs();
80 private:
static bool stop;
83 private: boost::thread *masterThread;
88 private: boost::mutex *receiveMutex;
89 private: std::list<msgs::ServerControl> controlMsgs;
92 private: po::variables_map vm;