1 // File: Model_AttributeString.h
2 // Created: 2 june 2014
3 // Author: Vitaly Smetannikov
5 #ifndef Model_AttributeString_H_
6 #define Model_AttributeString_H_
9 #include <ModelAPI_AttributeString.h>
11 #include <TDF_Label.hxx>
12 #include <Handle_TDataStd_Name.hxx>
16 /**\class Model_AttributeString
18 * \brief Attribute that contains std (null terminated) string.
21 class Model_AttributeString : public ModelAPI_AttributeString
23 Handle_TDataStd_Name myString; ///< double is Real attribute
25 /// Defines the double value
26 MODEL_EXPORT virtual void setValue(const std::string& theValue);
28 /// Returns the double value
29 MODEL_EXPORT virtual std::string value();
32 /// Initializes attibutes
33 Model_AttributeString(TDF_Label& theLabel);
35 friend class Model_Data;