00001
00002
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00031
00032 #ifndef RCSC_TRAINER_CONFIG_H
00033 #define RCSC_TRAINER_CONFIG_H
00034
00035 #include <string>
00036
00037 namespace rcsc {
00038
00039 class ParamMap;
00040
00045 class TrainerConfig {
00046 private:
00047
00048
00049
00050 std::string M_team_name;
00051 double M_version;
00052
00054 int M_server_wait_seconds;
00055
00057 std::string M_rcssserver_host;
00059 int M_rcssserver_port;
00060
00062 int M_compression;
00063
00065 bool M_use_eye;
00066
00068 bool M_use_ear;
00069
00070 public:
00071
00075 TrainerConfig();
00076
00080 ~TrainerConfig();
00081
00086 void createParamMap( ParamMap & param_map );
00087
00088 private:
00092 void setDefaultParam();
00093
00094 public:
00095
00096
00097
00098 const
00099 std::string & teamName() const
00100 {
00101 return M_team_name;
00102 }
00103 const
00104 double & version() const
00105 {
00106 return M_version;
00107 }
00108
00109 int serverWaitSeconds() const
00110 {
00111 return M_server_wait_seconds;
00112 }
00113
00114 const
00115 std::string & host() const
00116 {
00117 return M_rcssserver_host;
00118 }
00119
00120 int port() const
00121 {
00122 return M_rcssserver_port;
00123 }
00124
00125 int compression() const
00126 {
00127 return M_compression;
00128 }
00129
00130 bool useEye() const
00131 {
00132 return M_use_eye;
00133 }
00134
00135 bool useEar() const
00136 {
00137 return M_use_eye;
00138 }
00139
00140 };
00141
00142 }
00143
00144 #endif