Logo Search packages:      
Sourcecode: poco version File versions  Download package

std::string Poco::OpcomChannel::getProperty ( const std::string &  name  )  const [virtual]

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

Reimplemented from Poco::Channel.

Definition at line 148 of file OpcomChannel.cpp.

References Poco::Channel::getProperty(), and PROP_TARGET.

{
      if (name == PROP_TARGET)
      {
            if (_target == OPC$M_NM_CARDS)
                  return "CARDS";
            else if (_target == OPC$M_NM_CENTRL)
                  return "CENTRL";
            else if (_target == OPC$M_NM_CLUSTER)
                  return "CLUSTER";
            else if (_target == OPC$M_NM_DEVICE)
                  return "DEVICE";
            else if (_target == OPC$M_NM_DISKS)
                  return "DISKS";
            else if (_target == OPC$M_NM_NTWORK)
                  return "NTWORK";
            else if (_target == OPC$M_NM_TAPES)
                  return "TAPES";
            else if (_target == OPC$M_NM_PRINT)
                  return "PRINT";
            else if (_target == OPC$M_NM_SECURITY)
                  return "SECURITY";
            else if (_target == OPC$M_NM_OPER1)
                  return "OPER1";
            else if (_target == OPC$M_NM_OPER2)
                  return "OPER2";
            else if (_target == OPC$M_NM_OPER3)
                  return "OPER3";
            else if (_target == OPC$M_NM_OPER4)
                  return "OPER4";
            else if (_target == OPC$M_NM_OPER5)
                  return "OPER5";
            else if (_target == OPC$M_NM_OPER6)
                  return "OPER6";
            else if (_target == OPC$M_NM_OPER7)
                  return "OPER7";
            else if (_target == OPC$M_NM_OPER8)
                  return "OPER8";
            else if (_target == OPC$M_NM_OPER9)
                  return "OPER9";
            else if (_target == OPC$M_NM_OPER10)
                  return "OPER10";
            else if (_target == OPC$M_NM_OPER11)
                  return "OPER11";
            else if (_target == OPC$M_NM_OPER12)
                  return "OPER12";
      }
      return Channel::getProperty(name);
}


Generated by  Doxygen 1.6.0   Back to index