]> SALOME platform Git repositories - modules/shaper.git/blob - src/Model/Model_Object.cpp
Salome HOME
Added "Object" feature: result of the operation in specialized folders.
[modules/shaper.git] / src / Model / Model_Object.cpp
1 // File:        Model_Object.cpp
2 // Created:     19 May 2014
3 // Author:      Mikhail PONIKAROV
4
5 #include "Model_Object.h"
6 #include <TCollection_AsciiString.hxx>
7
8 boost::shared_ptr<ModelAPI_Feature> Model_Object::featureRef()
9 {
10   return myRef;
11 }
12
13 std::string Model_Object::getName()
14 {
15   return TCollection_AsciiString(myName->Get()).ToCString();
16 }
17
18 void Model_Object::setName(std::string theName)
19 {
20   myName->Set(theName.c_str());
21 }
22
23 Model_Object::Model_Object(boost::shared_ptr<ModelAPI_Feature> theRef,
24                            Handle_TDataStd_Name theName)
25                            : myRef(theRef), myName(theName)
26 {
27 }