Salome HOME
Issue #273: Add copyright string
[modules/shaper.git] / src / Model / Model_AttributeString.h
1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
2
3 // File:        Model_AttributeString.h
4 // Created:     25 august 2014
5 // Author:      sbh
6
7 #ifndef MODEL_ATTRIBUTESTRING_H_
8 #define MODEL_ATTRIBUTESTRING_H_
9
10 #include <Model.h>
11 #include <ModelAPI_AttributeString.h>
12
13 #include <TDF_Label.hxx>
14 #include <Handle_TDataStd_Name.hxx>
15
16 #include <string>
17
18 /**\class Model_AttributeString
19  * \ingroup DataModel
20  * \brief Attribute that contains std (null terminated) string.
21  */
22
23 class Model_AttributeString : public ModelAPI_AttributeString
24 {
25   Handle_TDataStd_Name myString;
26  public:
27   /// Defines the std::string value
28   MODEL_EXPORT virtual void setValue(const std::string& theValue);
29
30   /// Returns the std::string  value
31   MODEL_EXPORT virtual std::string value();
32
33  protected:
34   /// Initializes attibutes
35   Model_AttributeString(TDF_Label& theLabel);
36
37   friend class Model_Data;
38 };
39
40 #endif