deployer-funcs.hpp
Go to the documentation of this file.
00001 /***************************************************************************
00002  Copyright (c) 2008 S Roderick <xxxkiwi DOT xxxnet AT macxxx DOT comxxx>
00003                                (remove the x's above)
00004 
00005  ***************************************************************************
00006  *   This library is free software; you can redistribute it and/or         *
00007  *   modify it under the terms of the GNU Lesser General Public            *
00008  *   License as published by the Free Software Foundation; either          *
00009  *   version 2.1 of the License, or (at your option) any later version.    *
00010  *                                                                         *
00011  *   This library is distributed in the hope that it will be useful,       *
00012  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00013  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU     *
00014  *   Lesser General Public License for more details.                       *
00015  *                                                                         *
00016  *   You should have received a copy of the GNU Lesser General Public      *
00017  *   License along with this library; if not, write to the Free Software   *
00018  *   Foundation, Inc., 59 Temple Place,                                    *
00019  *   Suite 330, Boston, MA  02111-1307  USA                                *
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 // namespace
00132 }
00133 
00134 #endif


ocl
Author(s): OCL Development Team
autogenerated on Sun Nov 27 2016 03:45:30