20 #ifndef MODEL_ATTRIBUTESTRING_H_
21 #define MODEL_ATTRIBUTESTRING_H_
24 #include <ModelAPI_AttributeString.h>
26 #include <TDF_Label.hxx>
27 #include <TDataStd_Name.hxx>
38 Handle_TDataStd_Name myString;
42 MODEL_EXPORT
virtual void setValue(
const std::string& theValue);
44 MODEL_EXPORT
virtual void setValue(
const std::wstring& theValue);
47 MODEL_EXPORT
virtual std::string
value();
49 MODEL_EXPORT
virtual char16_t*
valueU();
51 MODEL_EXPORT
virtual bool isUValue()
const;
API for the attribute that contains std (null terminated) string.
Definition: ModelAPI_AttributeString.h:33
Attribute that contains std (null terminated) string.
Definition: Model_AttributeString.h:37
virtual MODEL_EXPORT std::string value()
Returns the std::string value.
Definition: Model_AttributeString.cpp:62
Model_AttributeString(TDF_Label &theLabel)
Initializes attributes.
Definition: Model_AttributeString.cpp:82
virtual void reinit()
Reinitializes the internal state of the attribute (may be needed on undo/redo, abort,...
Definition: Model_AttributeString.cpp:88
virtual MODEL_EXPORT char16_t * valueU()
Returns a pointer to Unicode string.
Definition: Model_AttributeString.cpp:69
virtual MODEL_EXPORT void setValue(const std::string &theValue)
Defines the std::string value.
Definition: Model_AttributeString.cpp:36
virtual MODEL_EXPORT bool isUValue() const
Returns true if Unicode string was stored.
Definition: Model_AttributeString.cpp:78
General object of the application that allows to get/set attributes from the document and compute res...
Definition: Model_Data.h:61