class Poco::OpcomChannel

Overview

A OpenVMS-only channel that uses the OpenVMS OPCOM service. More…

#include <OpcomChannel.h>

class OpcomChannel: public Poco::Channel
{
public:
    // fields

    static const std::string PROP_TARGET;

    // construction

    OpcomChannel();
    OpcomChannel(int target);

    // methods

    virtual
    void
    log(const Message& msg);

    virtual
    void
    setProperty(
        const std::string& name,
        const std::string& value
        );

    virtual
    std::string
    getProperty(const std::string& name) const;
};

Inherited Members

public:
    // methods

    virtual
    void
    setProperty(
        const std::string& name,
        const std::string& value
        ) = 0;

    virtual
    std::string
    getProperty(const std::string& name) const = 0;

    void
    duplicate() const;

    void
    release() const;

    int
    referenceCount() const;

    virtual
    void
    open();

    virtual
    void
    close();

    virtual
    void
    log(const Message& msg) = 0;

    virtual
    void
    setProperty(
        const std::string& name,
        const std::string& value
        );

    virtual
    std::string
    getProperty(const std::string& name) const;

Detailed Documentation

A OpenVMS-only channel that uses the OpenVMS OPCOM service.

Construction

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().

Methods

virtual
void
log(const Message& msg)

Logs the given message using the OpenVMS OPCOM service.

virtual
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:

* CARDS:    Card device operator
* CENTRL:   Central operator
* SECURITY: Security operator
* CLUSTER:  OpenVMS Cluster operator
* DEVICE:   Device status information
* DISKS:    Disks operator
* NTWORK:   Network operator
* TAPES:    Tapes operator
* PRINT:    Printer operator
* OPER1 ..
* OPER12:   System-manager-defined operator functions
virtual
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.