Poco::Netconf

class Utility

Library: Netconf
Package: Netconf
Header: Poco/Netconf/Utility.h

Description

Utility class to convert enums to string and back.

Member Summary

Member Functions: defaultOperationFromString, errorOptionFromString, infoFromString, operationFromString, tagFromString, testOptionFromString, toString, typeFromString

Enumerations

DefaultOperation

DOP_MERGE = 0

DOP_REPLACE

DOP_NONE

ErrorOption

EO_STOP = 0

EO_CONTINUE

EO_ROLLBACK

Operation

OP_MERGE = 0

OP_REPLACE

OP_CREATE

OP_DELETE

TestOption

TO_TESTTHENSET = 0

TO_SET

Constructors

Destructor

~Utility protected

~Utility();

Member Functions

defaultOperationFromString static

static DefaultOperation defaultOperationFromString(
    const std::string & val
);

Creates a default operation from a string. Returns DOP_MERGE for empty val.

errorOptionFromString static

static ErrorOption errorOptionFromString(
    const std::string & val
);

Creates an error option from a string. Returns EO_STOP for empty val.

infoFromString static

static NetconfException::ErrorInfo infoFromString(
    const std::string & val
);

Creates an error info from a string.

operationFromString static

static Operation operationFromString(
    const std::string & val
);

Creates an operation from a string. Returns OP_MERGE for empty val.

tagFromString static

static NetconfException::Tag tagFromString(
    const std::string & val
);

Creates a tag from a string.

testOptionFromString static

static TestOption testOptionFromString(
    const std::string & val
);

Creates a test option from a string. Returns TO_TESTTHENSET for empty val.

toString static inline

static const std::string & toString(
    Operation val
);

Converts a operation to a string.

toString static

static const std::string & toString(
    DefaultOperation val
);

Converts a default op to a string.

toString static

static const std::string & toString(
    TestOption val
);

Converts a test option to a string.

toString static

static const std::string & toString(
    ErrorOption val
);

Converts an error option to a string.

toString static

static const std::string & toString(
    NetconfException::Tag val
);

Converts a tag to a string.

toString static

static const std::string & toString(
    NetconfException::ErrorType type
);

Converts an error type to a string.

toString static

static const std::string & toString(
    NetconfException::ErrorInfo nfo
);

Converts an error info to a string.

typeFromString static

static NetconfException::ErrorType typeFromString(
    const std::string & val
);

Creates an error type from a string.