CommonOptions.h

Go to the documentation of this file.
00001 // ----------------------------------------------------------------------------
00002 //
00003 // $Id$
00004 //
00005 // Copyright 2008, 2009, 2010, 2011, 2012  Antonio Franchi and Paolo Stegagno    
00006 //
00007 // This file is part of MIP.
00008 //
00009 // MIP is free software: you can redistribute it and/or modify
00010 // it under the terms of the GNU General Public License as published by
00011 // the Free Software Foundation, either version 3 of the License, or
00012 // (at your option) any later version.
00013 //
00014 // MIP is distributed in the hope that it will be useful,
00015 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00016 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017 // GNU General Public License for more details.
00018 //
00019 // You should have received a copy of the GNU General Public License
00020 // along with MIP. If not, see <http://www.gnu.org/licenses/>.
00021 //
00022 // Contact info: antonio.franchi@tuebingen.mpg.de stegagno@diag.uniroma1.it
00023 //
00024 // ----------------------------------------------------------------------------
00025 
00026 
00031 
00033 /* @{ */
00034 
00035 
00036 #ifndef __COMMON_OPTIONS_
00037 #define __COMMON_OPTIONS_
00038 
00039 #ifdef MIP_HOST_APPLE
00040 #include <applePatch.h>
00041 #endif
00042 
00043 #include <vector>
00044 #include <string>
00045 #include <sstream>
00046 #include <iostream>
00047 #include <assert.h>
00048 #include <stdlib.h>
00049 
00050 #include <Types.h>
00051 #include <Option.h>
00052 
00053 
00054 class CommonOptions : public Options {
00055 private:
00056  CommonOptions();
00057 
00058 public:
00059   StringOption* execName;
00060   StringOption*  resTaskFile;
00061   StringOption*  configFile;
00062   IntOption*  schedMinTimeUsecs;
00063   IntOption*  robotId;
00064   IntOption*  embVisOn;
00065   StringOption* scenario;
00066   IntOption*  fifoOn;
00067   IntOption*  debugLevel;
00068   BoolOption*  saveFiles;
00069   StringOption* rootSaveFiles;
00070   BoolOption* useNewScheduler;
00071 
00072 
00073   string getObjectName() const {
00074    return "CommonOptions";
00075   }
00076 
00077   OptionGroupsType getGroup() {
00078    return OPT_GRP_COMM;
00079   }
00080 
00081   static void init(int argc, char* const argv[]);
00082 
00083         static void init(bool in);
00084 
00085 
00086 };
00087 
00088 
00089 extern CommonOptions *commonOptions;
00090 
00091 
00092 #endif
00093 
00094 
00095 /* @} */
00096 

Generated on Mon Feb 20 07:01:06 2017 for MIP by  doxygen 1.5.6