nameconfig.h
来自「一个语言识别引擎」· C头文件 代码 · 共 59 行
H
59 行
// -*- mode:C++; tab-width:4; c-basic-offset:4; indent-tabs-mode:nil -*-
/*
* Copyright (C) 2006 Paul Fitzpatrick
* CopyPolicy: Released under the terms of the GNU GPL v2.0.
*
*/
#ifndef _YARP2_NAMECONFIG_
#define _YARP2_NAMECONFIG_
#include <yarp/String.h>
#include <yarp/Address.h>
namespace yarp {
class NameConfig;
}
/**
* Small helper class to help deal with legacy YARP configuration files.
*
*/
class yarp::NameConfig {
public:
String getConfigFileName();
bool createPath(const String& fileName, int ignoreLevel = 1);
String readConfig(const String& fileName);
bool writeConfig(const String& fileName, const String& text);
bool fromFile();
bool toFile();
void setAddress(const Address& address);
String getHostName();
static String getIps();
bool isLocalName(const String& name);
Address getAddress();
static String getEnv(const String& key);
private:
Address address;
bool fromString(const String& txt);
};
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?