Beispiel #1
0
void CUTS_BE_Action_Property_T <CUTS_BE_Xml>::
generate (const PICML::Property & property)
{
  // Get the datatype for the property.
  PICML::DataType datatype = property.DataType_child ();

  if (datatype != Udm::null)
  {
    try
    {
      PICML::PredefinedType type =
        PICML::PredefinedType::Cast (datatype.ref ());

      this->ctx_.outfile_
        << "<property name=\"" << property.name () << "\" "
        << "type=\"" << type.name () << "\" value=\""
        << property.DataValue () << "\" />" << std::endl;
    }
    catch (...)
    {

    }
  }
}