Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Support the temporary compatibility with old saved files to be able to check the...
[modules/shaper.git]
/
src
/
Model
/
Model_AttributeRefAttr.h
diff --git
a/src/Model/Model_AttributeRefAttr.h
b/src/Model/Model_AttributeRefAttr.h
index f9d2bc42e2ff34f001030855f18c4767ee3ccc6b..49337e695a9e7ebae3b79a944271b6a3d2b72f52 100644
(file)
--- a/
src/Model/Model_AttributeRefAttr.h
+++ b/
src/Model/Model_AttributeRefAttr.h
@@
-1,9
+1,11
@@
+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
+
// File: Model_AttributeRefAttr.h
// Created: 8 May 2014
// Author: Mikhail PONIKAROV
// File: Model_AttributeRefAttr.h
// Created: 8 May 2014
// Author: Mikhail PONIKAROV
-#ifndef Model_AttributeRefAttr_H
eaderFile
-#define Model_AttributeRefAttr_H
eaderFile
+#ifndef Model_AttributeRefAttr_H
_
+#define Model_AttributeRefAttr_H
_
#include "Model.h"
#include "ModelAPI_AttributeRefAttr.h"
#include "Model.h"
#include "ModelAPI_AttributeRefAttr.h"
@@
-19,26
+21,29
@@
class Model_AttributeRefAttr : public ModelAPI_AttributeRefAttr
{
class Model_AttributeRefAttr : public ModelAPI_AttributeRefAttr
{
- Handle_TDF_Reference myRef; ///< reference to the feature label
-
///< ID of the referenced attirbute (empty if this is a reference to a feature)
+ Handle_TDF_Reference myRef;
///< reference to the feature label
+ ///< ID of the referenced attirbute (empty if this is a reference to a feature)
Handle_TDataStd_Comment myID;
Handle_TDataStd_Comment myID;
-public:
- /// Returns true if this attribute references to a
feature
(not to the attribute)
- MODEL_EXPORT virtual bool is
Feature
();
+
public:
+ /// Returns true if this attribute references to a
object
(not to the attribute)
+ MODEL_EXPORT virtual bool is
Object
();
/// Defines the reference to the attribute
/// Defines the reference to the attribute
- MODEL_EXPORT virtual void setAttr(
boost
::shared_ptr<ModelAPI_Attribute> theAttr);
+ MODEL_EXPORT virtual void setAttr(
std
::shared_ptr<ModelAPI_Attribute> theAttr);
/// Returns attribute referenced from this attribute
/// Returns attribute referenced from this attribute
- MODEL_EXPORT virtual boost::shared_ptr<ModelAPI_Attribute> attr();
+ MODEL_EXPORT virtual std::shared_ptr<ModelAPI_Attribute> attr();
+
+ /// Defines the reference to the object
+ MODEL_EXPORT virtual void setObject(ObjectPtr theFeature);
- ///
Defines the reference to the featur
e
- MODEL_EXPORT virtual
void setFeature(boost::shared_ptr<ModelAPI_Feature> theFeature
);
+ ///
Returns object referenced from this attribut
e
+ MODEL_EXPORT virtual
ObjectPtr object(
);
- /// Returns
feature referenced from this attribut
e
- MODEL_EXPORT virtual boo
st::shared_ptr<ModelAPI_Feature> feature
();
+ /// Returns
true if attribute was initialized by some valu
e
+ MODEL_EXPORT virtual boo
l isInitialized
();
-protected:
+
protected:
/// Objects are created for features automatically
MODEL_EXPORT Model_AttributeRefAttr(TDF_Label& theLabel);
/// Objects are created for features automatically
MODEL_EXPORT Model_AttributeRefAttr(TDF_Label& theLabel);