trainer_config.h

説明を見る。
00001 // -*-c++-*-
00002 
00008 /*
00009  *Copyright:
00010 
00011  Copyright (C) Hidehisa AKIYAMA
00012 
00013  This code is free software; you can redistribute it and/or
00014  modify it under the terms of the GNU Lesser General Public
00015  License as published by the Free Software Foundation; either
00016  version 2.1 of the License, or (at your option) any later version.
00017 
00018  This library is distributed in the hope that it will be useful,
00019  but WITHOUT ANY WARRANTY; without even the implied warranty of
00020  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00021  Lesser General Public License for more details.
00022 
00023  You should have received a copy of the GNU Lesser General Public
00024  License along with this library; if not, write to the Free Software
00025  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00026 
00027  *EndCopyright:
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     // basic setting
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     // basic settings
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

librcscに対してThu May 1 15:41:22 2008に生成されました。  doxygen 1.5.0