25 #include <coil/stringutil.h> 37 "/usr/local/etc/rtc.conf",
38 "/usr/local/etc/rtc/rtc.conf",
113 if (
m_isMaster) { prop[
"manager.is_master"] =
"YES"; }
134 while ((opt = get_opts()) > 0)
140 m_argprop[
"manager.corba_servant"] =
"NO";
153 std::string::size_type pos(optarg.find(
":"));
154 if (pos != std::string::npos)
156 m_argprop[optarg.substr(0, pos)] = optarg.substr(pos + 1);
165 std::string arg(
":"); arg += get_opts.
optarg;
266 std::ifstream infile;
267 infile.open(filename.c_str(), std::ios::in);
269 if (infile.fail() != 0)
char version[COIL_UTSNAME_LENGTH]
std::string m_configFile
Manager's configuration file path.
bool stringTo(To &val, const char *str)
Convert the given std::string to object.
virtual ~ManagerConfig(void)
Destructor.
bool fileExist(const std::string &filename)
Check the file existence.
RTC manager configuration.
char sysname[COIL_UTSNAME_LENGTH]
void configure(coil::Properties &prop)
Specify the configuration information to the Property.
void parseArgs(int argc, char **argv)
Parse the command arguments.
static const char * default_config[]
Default configuration for ORBManager.
char nodename[COIL_UTSNAME_LENGTH]
env
ネームサーバー定義 env = RtmEnv(sys.argv, ["localhost:2809"]) list0 = env.name_space["localhost:2809"].list_obj() env.name_space['localhost:2809'].rtc_handles.keys() ns = env.name_space['localhost:2809']
::pid_t pid_t
Get process ID of the caller process.
void init(int argc, char **argv)
Initialization.
void setDefaults(const char *defaults[], long num=LONG_MAX)
Set a default value together in the property list.
std::string setProperty(const std::string &key, const std::string &value)
Set a value associated with key in the property list.
int uname(utsname *name)
Get System information.
void load(std::istream &inStream)
Loads property list that consists of key:value from input stream.
prop
Organization::get_organization_property ();.
Class represents a set of properties.
char * getenv(const char *name)
Get environment variable.
static const char * config_file_path[]
The default configuration file path for manager.
std::string sprintf(char const *__restrict fmt,...)
Convert it into a format given with an argumen.
ManagerConfig()
Constructor.
char machine[COIL_UTSNAME_LENGTH]
bool m_isMaster
Manager master flag.
static const char * config_file_env
The environment variable to distinguish the default configuration file path.
coil::Properties m_argprop
configuration properties from arguments
char release[COIL_UTSNAME_LENGTH]
bool findConfigFile()
Find the configuration file.
void setSystemInformation(coil::Properties &prop)
Set system information.