1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
3 // File: ModelAPI_AttributeString.h
5 // Author: Mikhail PONIKAROV
7 #ifndef MODELAPI_ATTRIBUTESTRING_H_
8 #define MODELAPI_ATTRIBUTESTRING_H_
10 #include "ModelAPI_Attribute.h"
14 /**\class ModelAPI_AttributeString
16 * \brief API for the attribute that contains std (null terminated) string.
19 class ModelAPI_AttributeString : public ModelAPI_Attribute
22 /// Defines the string value
23 MODELAPI_EXPORT virtual void setValue(const std::string& theValue) = 0;
25 /// Returns the string value
26 MODELAPI_EXPORT virtual std::string value() = 0;
28 /// Returns the type of this class of attributes
29 MODELAPI_EXPORT static std::string typeId()
34 /// Returns the type of this class of attributes, not static method
35 MODELAPI_EXPORT virtual std::string attributeType();
37 /// To virtually destroy the fields of successors
38 MODELAPI_EXPORT virtual ~ModelAPI_AttributeString();
41 /// Objects are created for features automatically
42 MODELAPI_EXPORT ModelAPI_AttributeString();
45 //! Pointer on string attribute
46 typedef std::shared_ptr<ModelAPI_AttributeString> AttributeStringPtr;