Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef ORO_DEPLOYER_FUNCS_HPP
00023 #define ORO_DEPLOYER_FUNCS_HPP
00024
00025 #include <string>
00026 #include <boost/program_options.hpp>
00027 #include <rtt/rtt-config.h>
00028
00029 namespace OCL
00030 {
00031
00053 extern int deployerParseCmdLine(
00054 int argc,
00055 char** argv,
00056 std::string& siteFile,
00057 std::vector<std::string>& scriptFiles,
00058 std::string& name,
00059 bool& requireNameService,
00060 bool& deploymentOnlyChecked,
00061 int& minNumberCPU,
00062 boost::program_options::variables_map& vm,
00063 boost::program_options::options_description* otherOptions=NULL);
00064
00065
00077 extern int enforceMinNumberCPU(const int minNumberCPU);
00078
00079 #ifdef ORO_BUILD_RTALLOC
00080
00085 struct memorySize
00086 {
00087 public:
00088 memorySize() :
00089 size(0)
00090 {}
00091 memorySize(size_t s) :
00092 size(s)
00093 {}
00094 size_t size;
00095 };
00096
00100 inline std::ostream& operator<<(std::ostream& os, memorySize m)
00101 {
00102 os << m.size;
00103 return os;
00104 }
00105
00108 extern boost::program_options::options_description deployerRtallocOptions(
00109 memorySize& rtallocMemorySize);
00110
00111 #if defined(ORO_BUILD_LOGGING) && defined(OROSEM_LOG4CPP_LOGGING)
00112
00114 extern boost::program_options::options_description deployerRttLog4cppOptions(
00115 std::string& rttLog4cppConfigFile);
00116
00125 extern int deployerConfigureRttLog4cppCategory(const std::string& rttLog4cppConfigFile);
00126
00127 #endif
00128
00129 #endif
00130
00131
00132 }
00133
00134 #endif