0028852: TDF_AttributeIterator should not be marked as "handle with care"
[occt.git] / src / TDF / TDF_AttributeIterator.hxx
index b81f96c..4a1c831 100644 (file)
@@ -4,8 +4,8 @@
 //
 // This file is part of Open CASCADE Technology software library.
 //
-// This library is free software; you can redistribute it and / or modify it
-// under the terms of the GNU Lesser General Public version 2.1 as published
+// This library is free software; you can redistribute it and/or modify it under
+// the terms of the GNU Lesser General Public License version 2.1 as published
 // by the Free Software Foundation, with special exception defined in the file
 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
 // distribution for complete text of the license and disclaimer of any warranty.
 //Version      Date            Purpose
 //             0.0     Feb 16 1998     Creation
 
-
-#ifndef _TDF_Attribute_HeaderFile
-#include <TDF_Attribute.hxx>
-#endif
-#ifndef _TDF_Label_HeaderFile
-#include <TDF_Label.hxx>
-#endif
-
 #ifndef TDF_AttributeIterator_HeaderFile
 #define TDF_AttributeIterator_HeaderFile
 
-#ifndef _Handle_TDF_Attribute_HeaderFile
-#include <Handle_TDF_Attribute.hxx>
-#endif
-#ifndef _Standard_Boolean_HeaderFile
-#include <Standard_Boolean.hxx>
-#endif
-#ifndef _TDF_LabelNodePtr_HeaderFile
+#include <TDF_Attribute.hxx>
+#include <TDF_Label.hxx>
 #include <TDF_LabelNodePtr.hxx>
-#endif
-class TDF_Attribute;
-class TDF_Label;
-
-
-#ifndef _Standard_Macro_HeaderFile
-#include <Standard_Macro.hxx>
-#endif
 
 // This class provides a way to iterates on the
 // up-to-date (current) valid attributes of a label.
 //
-// Even a Forgotten attribute may be found if this
+// This class should not be used for standard attributes workflow.
+// Application allways knows what to search at particular label.
+// So, use IsAttribute and FindAttibute methods of
+// TDF_Label to check and get attributes in usual way.
+// This class may be used for processing of content of labels
+// in generic way, like copy-tool, specific save/restore algorithms,
+// etc.
+//
+// Even a forgotten attribute may be found if this
 // option is set. To use this possibility, look at
 // the constructor.
-// 
-// Sorry: nobody needs this iterator but its friends!
 
 class TDF_AttributeIterator  {