Logo Search packages:      
Sourcecode: jaula version File versions

void JAULA::Value_Object::repr ( std::ostream &  ostr  )  const [virtual]

Represents the instance in a stream.

Parameters:
ostr Stream where the instance is to be represented.
Description
writes the instance content in JSON notation in a stream.

Implements JAULA::Value.

Definition at line 67 of file jaula_value_object.cc.

References data_.

  {
    ostr << "{ ";
    for (dataType::const_iterator it = data_.begin(); (it != data_.end()); it++)
    {
      if (it != data_.begin())
        ostr << ", ";
      ostr << '"' << it->first << '"'
        << " : " << *(it->second);
    }
    ostr << " }";
  }


Generated by  Doxygen 1.6.0   Back to index