7#ifndef YARP_OS_IMPL_NAMECONFIG_H
8#define YARP_OS_IMPL_NAMECONFIG_H
15#define YARP_CONFIG_FILENAME "yarp.conf"
16#define YARP_CONFIG_NAMESPACE_FILENAME "yarp_namespace.conf"
25 static std::string expandFilename(
const char*
fname);
27 std::string getSafeString(
const std::string& txt);
29 std::string getConfigFileName(
const char*
stem =
nullptr,
30 const char* ns =
nullptr);
32 std::string readConfig(
const std::string&
fileName);
34 bool writeConfig(
const std::string&
fileName,
const std::string& text);
36 bool fromFile(
const char* ns =
nullptr);
38 bool toFile(
bool clean =
false);
40 void setAddress(
const Contact& address);
43 const std::string& seed =
"");
45 static std::string getIps();
49 static bool isLocalName(
const std::string& name);
63 std::string getNamespace(
bool refresh =
false);
67 void setNamespace(
const std::string& ns);
75 bool fromString(
const std::string& txt);
A simple collection of objects that can be described and transmitted in a portable way.
A mini-server for performing network communication in the background.
Small helper class to help deal with legacy YARP configuration files.
void setMode(const std::string &mode)
The components from which ports and connections are built.
#define YARP_SUPPRESS_DLL_INTERFACE_WARNING_ARG(x)
Suppress MSVC C4251 warning for the declaration.