Library: Netconf
Package: Netconf
Header: Poco/Netconf/Utility.h
Utility class to convert enums to string and back.
Member Functions: defaultOperationFromString, errorOptionFromString, infoFromString, operationFromString, tagFromString, testOptionFromString, toString, typeFromString
DOP_MERGE = 0
EO_STOP = 0
OP_MERGE = 0
TO_TESTTHENSET = 0
~Utility();
static DefaultOperation defaultOperationFromString(
const std::string & val
);
Creates a default operation from a string. Returns DOP_MERGE for empty val.
static ErrorOption errorOptionFromString(
const std::string & val
);
Creates an error option from a string. Returns EO_STOP for empty val.
static NetconfException::ErrorInfo infoFromString(
const std::string & val
);
Creates an error info from a string.
static Operation operationFromString(
const std::string & val
);
Creates an operation from a string. Returns OP_MERGE for empty val.
static NetconfException::Tag tagFromString(
const std::string & val
);
Creates a tag from a string.
static TestOption testOptionFromString(
const std::string & val
);
Creates a test option from a string. Returns TO_TESTTHENSET for empty val.
static const std::string & toString(
Operation val
);
Converts a operation to a string.
static const std::string & toString(
DefaultOperation val
);
Converts a default op to a string.
static const std::string & toString(
TestOption val
);
Converts a test option to a string.
static const std::string & toString(
ErrorOption val
);
Converts an error option to a string.
static const std::string & toString(
NetconfException::Tag val
);
Converts a tag to a string.
static const std::string & toString(
NetconfException::ErrorType type
);
Converts an error type to a string.
static const std::string & toString(
NetconfException::ErrorInfo nfo
);
Converts an error info to a string.
static NetconfException::ErrorType typeFromString(
const std::string & val
);
Creates an error type from a string.