Library: Foundation
Package: Logging
Header: Poco/OpcomChannel.h
A OpenVMS-only channel that uses the OpenVMS OPCOM service.
Direct Base Classes: Channel
All Base Classes: Channel, Configurable, RefCountedObject
Member Functions: getProperty, log, setProperty
Inherited Functions: close, duplicate, getProperty, log, open, referenceCount, release, setProperty
OpcomChannel();
Creates an OpcomChannel that uses the OPC$M_NM_CENTRL target.
OpcomChannel(
int target
);
Creates an OpcomChannel that uses the given target. Specify one of the OPC$M_NM_* values. See also setProperty().
~OpcomChannel();
std::string getProperty(
const std::string & name
) const;
Returns the value of the property with the given name. See setProperty() for a description of the supported properties.
See also: Poco::Channel::getProperty()
void log(
const Message & msg
);
Logs the given message using the OpenVMS OPCOM service.
See also: Poco::Channel::log()
void setProperty(
const std::string & name,
const std::string & value
);
Sets the property with the given name.
The only supported property is "target", which must be set to one of the following values:
See also: Poco::Channel::setProperty()
static const std::string PROP_TARGET;