1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

0024002: Overall code and build procedure refactoring -- automatic

Automatic upgrade of OCCT code by command "occt_upgrade . -nocdl":
- WOK-generated header files from inc and sources from drv are moved to src
- CDL files removed
- All packages are converted to nocdlpack
This commit is contained in:
abv
2015-07-12 07:42:38 +03:00
parent 543a996496
commit 42cf5bc1ca
15354 changed files with 623957 additions and 509844 deletions

View File

@@ -1,16 +1,112 @@
TDataStd_ListOfExtendedString.hxx
TDataStd_ListIteratorOfListOfExtendedString.hxx
TDataStd_ListOfByte.hxx
TDataStd_ListIteratorOfListOfByte.hxx
TDataStd_LabelArray1.hxx
TDataStd_HLabelArray1.hxx
TDataStd_DataMapOfStringReal.hxx
TDataStd.cxx
TDataStd.hxx
TDataStd_AsciiString.cxx
TDataStd_AsciiString.hxx
TDataStd_BooleanArray.cxx
TDataStd_BooleanArray.hxx
TDataStd_BooleanList.cxx
TDataStd_BooleanList.hxx
TDataStd_ByteArray.cxx
TDataStd_ByteArray.hxx
TDataStd_ByteArray.lxx
TDataStd_ChildNodeIterator.cxx
TDataStd_ChildNodeIterator.hxx
TDataStd_ChildNodeIterator.lxx
TDataStd_Comment.cxx
TDataStd_Comment.hxx
TDataStd_Current.cxx
TDataStd_Current.hxx
TDataStd_DataMapIteratorOfDataMapOfStringByte.hxx
TDataStd_DataMapIteratorOfDataMapOfStringHArray1OfInteger.hxx
TDataStd_DataMapIteratorOfDataMapOfStringHArray1OfReal.hxx
TDataStd_DataMapIteratorOfDataMapOfStringReal.hxx
TDataStd_DataMapOfStringString.hxx
TDataStd_DataMapIteratorOfDataMapOfStringString.hxx
TDataStd_DataMapOfStringByte.hxx
TDataStd_DataMapIteratorOfDataMapOfStringByte.hxx
TDataStd_DataMapOfStringHArray1OfInteger.hxx
TDataStd_DataMapIteratorOfDataMapOfStringHArray1OfInteger.hxx
TDataStd_DataMapOfStringHArray1OfReal.hxx
TDataStd_DataMapIteratorOfDataMapOfStringHArray1OfReal.hxx
TDataStd_DataMapOfStringReal.hxx
TDataStd_DataMapOfStringString.hxx
TDataStd_DeltaOnModificationOfByteArray.cxx
TDataStd_DeltaOnModificationOfByteArray.hxx
TDataStd_DeltaOnModificationOfExtStringArray.cxx
TDataStd_DeltaOnModificationOfExtStringArray.hxx
TDataStd_DeltaOnModificationOfIntArray.cxx
TDataStd_DeltaOnModificationOfIntArray.hxx
TDataStd_DeltaOnModificationOfIntPackedMap.cxx
TDataStd_DeltaOnModificationOfIntPackedMap.hxx
TDataStd_DeltaOnModificationOfRealArray.cxx
TDataStd_DeltaOnModificationOfRealArray.hxx
TDataStd_Directory.cxx
TDataStd_Directory.hxx
TDataStd_Expression.cxx
TDataStd_Expression.hxx
TDataStd_ExtStringArray.cxx
TDataStd_ExtStringArray.hxx
TDataStd_ExtStringArray.lxx
TDataStd_ExtStringList.cxx
TDataStd_ExtStringList.hxx
TDataStd_HDataMapOfStringByte.cxx
TDataStd_HDataMapOfStringByte.hxx
TDataStd_HDataMapOfStringByte.lxx
TDataStd_HDataMapOfStringHArray1OfInteger.cxx
TDataStd_HDataMapOfStringHArray1OfInteger.hxx
TDataStd_HDataMapOfStringHArray1OfInteger.lxx
TDataStd_HDataMapOfStringHArray1OfReal.cxx
TDataStd_HDataMapOfStringHArray1OfReal.hxx
TDataStd_HDataMapOfStringHArray1OfReal.lxx
TDataStd_HDataMapOfStringInteger.cxx
TDataStd_HDataMapOfStringInteger.hxx
TDataStd_HDataMapOfStringInteger.lxx
TDataStd_HDataMapOfStringReal.cxx
TDataStd_HDataMapOfStringReal.hxx
TDataStd_HDataMapOfStringReal.lxx
TDataStd_HDataMapOfStringString.cxx
TDataStd_HDataMapOfStringString.hxx
TDataStd_HDataMapOfStringString.lxx
TDataStd_HLabelArray1.hxx
TDataStd_Integer.cxx
TDataStd_Integer.hxx
TDataStd_IntegerArray.cxx
TDataStd_IntegerArray.hxx
TDataStd_IntegerArray.lxx
TDataStd_IntegerList.cxx
TDataStd_IntegerList.hxx
TDataStd_IntPackedMap.cxx
TDataStd_IntPackedMap.hxx
TDataStd_IntPackedMap.lxx
TDataStd_LabelArray1.hxx
TDataStd_ListIteratorOfListOfByte.hxx
TDataStd_ListIteratorOfListOfExtendedString.hxx
TDataStd_ListOfByte.hxx
TDataStd_ListOfExtendedString.hxx
TDataStd_Name.cxx
TDataStd_Name.hxx
TDataStd_NamedData.cxx
TDataStd_NamedData.hxx
TDataStd_NamedData.lxx
TDataStd_NoteBook.cxx
TDataStd_NoteBook.hxx
TDataStd_PtrTreeNode.hxx
TDataStd_Real.cxx
TDataStd_Real.hxx
TDataStd_RealArray.cxx
TDataStd_RealArray.hxx
TDataStd_RealArray.lxx
TDataStd_RealEnum.hxx
TDataStd_RealList.cxx
TDataStd_RealList.hxx
TDataStd_ReferenceArray.cxx
TDataStd_ReferenceArray.hxx
TDataStd_ReferenceList.cxx
TDataStd_ReferenceList.hxx
TDataStd_Relation.cxx
TDataStd_Relation.hxx
TDataStd_Tick.cxx
TDataStd_Tick.hxx
TDataStd_TreeNode.cxx
TDataStd_TreeNode.hxx
TDataStd_TreeNode.lxx
TDataStd_UAttribute.cxx
TDataStd_UAttribute.hxx
TDataStd_Variable.cxx
TDataStd_Variable.hxx

View File

@@ -1,210 +0,0 @@
-- Created on: 1995-05-10
-- Created by: Denis PASCAL
-- Copyright (c) 1995-1999 Matra Datavision
-- Copyright (c) 1999-2014 OPEN CASCADE SAS
--
-- 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 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.
--
-- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement.
package TDataStd
---Purpose: This package defines standard attributes for
-- modelling.
-- These allow you to create and modify labels
-- and attributes for many basic data types.
-- Standard topological and visualization
-- attributes have also been created.
-- To find an attribute attached to a specific label,
-- you use the GUID of the type of attribute you
-- are looking for. To do this, first find this
-- information using the method GetID as follows: Standard_GUID anID =
-- MyAttributeClass::GetID();
-- Then, use the method Find for the label as follows:
-- Standard_Boolean HasAttribute
-- =
-- aLabel.Find(anID,anAttribute);
-- Note
-- For information on the relations between this
-- component of OCAF and the others, refer to the OCAF User's Guide.
--- Category: GUID - AttributeID
-- 2a96b606-ec8b-11d0-bee7-080009dc3333 TDataStd_Integer
-- 2a96b608-ec8b-11d0-bee7-080009dc3333 TDataStd_Name
-- 2a96b60f-ec8b-11d0-bee7-080009dc3333 TDataStd_Real
-- 2a96b610-ec8b-11d0-bee7-080009dc3333 TDataStd_Reference
-- 2a96b616-ec8b-11d0-bee7-080009dc3333 TDataStd_Comment
-- 2a96b61c-ec8b-11d0-bee7-080009dc3333 TDataStd_UAttribute
-- 2a96b61d-ec8b-11d0-bee7-080009dc3333 TDataStd_IntegerArray
-- 2a96b61e-ec8b-11d0-bee7-080009dc3333 TDataStd_RealArray
-- 2a96b624-ec8b-11d0-bee7-080009dc3333 TDataStd_ExtStringArray
-- 2a96b609-ec8b-11d0-bee7-080009dc3333 TDataStd_NoteBook
-- 2a96b61f-ec8b-11d0-bee7-080009dc3333 TDataStd_Directory
uses Standard,
MMgt,
TCollection,
TColStd,
TDF
is
enumeration RealEnum is
---Purpose:
-- The terms of this enumeration define the
-- semantics of a real number value.
SCALAR,
LENGTH,
ANGULAR
end RealEnum;
---Category: Basic attributes
-- ===================
class Current;
class Name;
class Comment;
class Integer;
class IntegerArray;
class Real;
class RealArray;
class ExtStringArray;
class UAttribute;
---Category: Attributes for organization
-- ============================
class TreeNode;
pointer PtrTreeNode to TreeNode from TDataStd;
class ChildNodeIterator;
class Directory;
---Category: Other attributes
-- ================
class NoteBook;
class Expression;
class Relation;
class Variable;
class DeltaOnModificationOfIntArray;
class DeltaOnModificationOfRealArray;
class DeltaOnModificationOfExtStringArray;
class DeltaOnModificationOfIntPackedMap;
class DeltaOnModificationOfByteArray;
-- Extension
class Tick;
class AsciiString;
class IntPackedMap;
-- Lists:
class IntegerList;
class RealList;
class ExtStringList;
class BooleanList;
class ReferenceList;
-- Arrays:
class BooleanArray;
class ReferenceArray;
class ByteArray;
class NamedData;
imported ListOfExtendedString;
imported ListIteratorOfListOfExtendedString;
-- Extension
imported ListOfByte;
imported ListIteratorOfListOfByte;
imported LabelArray1;
imported transient class HLabelArray1;
imported DataMapOfStringReal;
imported DataMapIteratorOfDataMapOfStringReal;
imported DataMapOfStringString;
imported DataMapIteratorOfDataMapOfStringString;
imported DataMapOfStringByte;
imported DataMapIteratorOfDataMapOfStringByte;
imported DataMapOfStringHArray1OfInteger;
imported DataMapIteratorOfDataMapOfStringHArray1OfInteger;
imported DataMapOfStringHArray1OfReal;
imported DataMapIteratorOfDataMapOfStringHArray1OfReal;
class HDataMapOfStringInteger;
class HDataMapOfStringReal;
class HDataMapOfStringString;
class HDataMapOfStringByte;
class HDataMapOfStringHArray1OfInteger;
class HDataMapOfStringHArray1OfReal;
IDList (anIDList : in out IDList from TDF);
---Purpose: Appends to <anIDList> the list of the attributes
-- IDs of this package. CAUTION: <anIDList> is NOT
-- cleared before use.
Print (DIM : RealEnum from TDataStd; S : in out OStream)
---Purpose: Prints the name of the real dimension <DIM> as a String on
-- the Stream <S> and returns <S>.
---C++: return &
returns OStream;
end TDataStd;

View File

@@ -14,35 +14,31 @@
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#include <TDataStd.ixx>
#include <Standard_GUID.hxx>
#include <TDataStd.hxx>
#include <TDataStd_ExtStringArray.hxx>
#include <TDataStd_Integer.hxx>
#include <TDataStd_IntegerArray.hxx>
#include <TDataStd_Name.hxx>
#include <TDataStd_Real.hxx>
#include <TDataStd_RealArray.hxx>
#include <TDataStd_UAttribute.hxx>
#include <TDF_AttributeIterator.hxx>
#include <TDF_AttributeList.hxx>
#include <TDF_Tool.hxx>
#include <TDF_TagSource.hxx>
#include <TDF_Reference.hxx>
#include <TDF_ChildIterator.hxx>
#include <TDF_DataSet.hxx>
#include <TDF_ListIteratorOfAttributeList.hxx>
#include <TDF_ListIteratorOfLabelList.hxx>
#include <TDF_MapIteratorOfLabelMap.hxx>
#include <TDF_DataSet.hxx>
#include <TDF_ChildIterator.hxx>
#include <TDataStd_Integer.hxx>
#include <TDataStd_Real.hxx>
#include <TDataStd_Name.hxx>
#include <TDataStd_UAttribute.hxx>
#include <TDataStd_IntegerArray.hxx>
#include <TDataStd_RealArray.hxx>
#include <TDataStd_ExtStringArray.hxx>
#include <Standard_GUID.hxx>
#include <TDF_Reference.hxx>
#include <TDF_TagSource.hxx>
#include <TDF_Tool.hxx>
//=======================================================================
//function : IDList
//purpose :
//=======================================================================
void TDataStd::IDList(TDF_IDList& anIDList)
{
anIDList.Append(TDF_TagSource::GetID());

164
src/TDataStd/TDataStd.hxx Normal file
View File

@@ -0,0 +1,164 @@
// Created on: 1995-05-10
// Created by: Denis PASCAL
// Copyright (c) 1995-1999 Matra Datavision
// Copyright (c) 1999-2014 OPEN CASCADE SAS
//
// 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 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.
//
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#ifndef _TDataStd_HeaderFile
#define _TDataStd_HeaderFile
#include <Standard.hxx>
#include <Standard_DefineAlloc.hxx>
#include <Standard_Handle.hxx>
#include <TDF_IDList.hxx>
#include <Standard_OStream.hxx>
#include <TDataStd_RealEnum.hxx>
class TDataStd_Current;
class TDataStd_Name;
class TDataStd_Comment;
class TDataStd_Integer;
class TDataStd_IntegerArray;
class TDataStd_Real;
class TDataStd_RealArray;
class TDataStd_ExtStringArray;
class TDataStd_UAttribute;
class TDataStd_TreeNode;
class TDataStd_ChildNodeIterator;
class TDataStd_Directory;
class TDataStd_NoteBook;
class TDataStd_Expression;
class TDataStd_Relation;
class TDataStd_Variable;
class TDataStd_DeltaOnModificationOfIntArray;
class TDataStd_DeltaOnModificationOfRealArray;
class TDataStd_DeltaOnModificationOfExtStringArray;
class TDataStd_DeltaOnModificationOfIntPackedMap;
class TDataStd_DeltaOnModificationOfByteArray;
class TDataStd_Tick;
class TDataStd_AsciiString;
class TDataStd_IntPackedMap;
class TDataStd_IntegerList;
class TDataStd_RealList;
class TDataStd_ExtStringList;
class TDataStd_BooleanList;
class TDataStd_ReferenceList;
class TDataStd_BooleanArray;
class TDataStd_ReferenceArray;
class TDataStd_ByteArray;
class TDataStd_NamedData;
class TDataStd_HDataMapOfStringInteger;
class TDataStd_HDataMapOfStringReal;
class TDataStd_HDataMapOfStringString;
class TDataStd_HDataMapOfStringByte;
class TDataStd_HDataMapOfStringHArray1OfInteger;
class TDataStd_HDataMapOfStringHArray1OfReal;
//! This package defines standard attributes for
//! modelling.
//! These allow you to create and modify labels
//! and attributes for many basic data types.
//! Standard topological and visualization
//! attributes have also been created.
//! To find an attribute attached to a specific label,
//! you use the GUID of the type of attribute you
//! are looking for. To do this, first find this
//! information using the method GetID as follows: Standard_GUID anID =
//! MyAttributeClass::GetID();
//! Then, use the method Find for the label as follows:
//! Standard_Boolean HasAttribute
//! =
//! aLabel.Find(anID,anAttribute);
//! Note
//! For information on the relations between this
//! component of OCAF and the others, refer to the OCAF User's Guide.
class TDataStd
{
public:
DEFINE_STANDARD_ALLOC
//! Appends to <anIDList> the list of the attributes
//! IDs of this package. CAUTION: <anIDList> is NOT
//! cleared before use.
Standard_EXPORT static void IDList (TDF_IDList& anIDList);
//! Prints the name of the real dimension <DIM> as a String on
//! the Stream <S> and returns <S>.
Standard_EXPORT static Standard_OStream& Print (const TDataStd_RealEnum DIM, Standard_OStream& S);
protected:
private:
friend class TDataStd_Current;
friend class TDataStd_Name;
friend class TDataStd_Comment;
friend class TDataStd_Integer;
friend class TDataStd_IntegerArray;
friend class TDataStd_Real;
friend class TDataStd_RealArray;
friend class TDataStd_ExtStringArray;
friend class TDataStd_UAttribute;
friend class TDataStd_TreeNode;
friend class TDataStd_ChildNodeIterator;
friend class TDataStd_Directory;
friend class TDataStd_NoteBook;
friend class TDataStd_Expression;
friend class TDataStd_Relation;
friend class TDataStd_Variable;
friend class TDataStd_DeltaOnModificationOfIntArray;
friend class TDataStd_DeltaOnModificationOfRealArray;
friend class TDataStd_DeltaOnModificationOfExtStringArray;
friend class TDataStd_DeltaOnModificationOfIntPackedMap;
friend class TDataStd_DeltaOnModificationOfByteArray;
friend class TDataStd_Tick;
friend class TDataStd_AsciiString;
friend class TDataStd_IntPackedMap;
friend class TDataStd_IntegerList;
friend class TDataStd_RealList;
friend class TDataStd_ExtStringList;
friend class TDataStd_BooleanList;
friend class TDataStd_ReferenceList;
friend class TDataStd_BooleanArray;
friend class TDataStd_ReferenceArray;
friend class TDataStd_ByteArray;
friend class TDataStd_NamedData;
friend class TDataStd_HDataMapOfStringInteger;
friend class TDataStd_HDataMapOfStringReal;
friend class TDataStd_HDataMapOfStringString;
friend class TDataStd_HDataMapOfStringByte;
friend class TDataStd_HDataMapOfStringHArray1OfInteger;
friend class TDataStd_HDataMapOfStringHArray1OfReal;
};
#endif // _TDataStd_HeaderFile

View File

@@ -1,87 +0,0 @@
-- Created on: 2007-07-31
-- Created by: Sergey ZARITCHNY
-- Copyright (c) 2007-2014 OPEN CASCADE SAS
--
-- 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 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.
--
-- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement.
class AsciiString from TDataStd inherits Attribute from TDF
---Purpose: Used to define an AsciiString attribute containing a TCollection_AsciiString
uses
Attribute from TDF,
Label from TDF,
GUID from Standard,
AsciiString from TCollection,
RelocationTable from TDF
is
---Purpose: class methods
-- =============
GetID (myclass)
---C++: return const &
---Purpose: Returns the GUID of the attribute.
returns GUID from Standard;
Set (myclass; label : Label from TDF; string : AsciiString from TCollection)
---Purpose: Finds, or creates an AsciiString attribute and sets the string.
-- the AsciiString attribute is returned.
returns AsciiString from TDataStd;
---Purpose: AsciiString methods
-- ===================
Create
returns AsciiString from TDataStd;
-- Constructor
Set (me : mutable; S : AsciiString from TCollection);
-- Sets the ascii string <S>
Get (me)
returns AsciiString from TCollection;
-- Returns the AsciiString <myString>
---C++: return const &
IsEmpty(me)
returns Boolean from Standard;
-- Returns True if the string of <me> contains zero characters.
---Category: TDF_Attribute methods
-- =====================
ID (me)
---C++: return const &
returns GUID from Standard;
Restore (me: mutable; with : Attribute from TDF);
-- Restores the backuped content from <with> into this one.
NewEmpty (me)
returns Attribute from TDF;
-- Returns an new empty AsciiString attribute.
Paste (me; into : Attribute from TDF;
RT : RelocationTable from TDF);
-- This method is used when copying an attribute from a source structure
-- into a target structure.
Dump(me; anOS : in out OStream from Standard)
returns OStream from Standard
is redefined;
---C++: return &
-- This method dumps the attribute value into the stream
fields
myString : AsciiString from TCollection;
end AsciiString;

View File

@@ -13,15 +13,19 @@
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#include <TDataStd_AsciiString.ixx>
#include <Standard_GUID.hxx>
#include <Standard_Type.hxx>
#include <TCollection_AsciiString.hxx>
#include <TDataStd_AsciiString.hxx>
#include <TDF_Attribute.hxx>
#include <TDF_Label.hxx>
#include <TDF_RelocationTable.hxx>
//=======================================================================
//function : TDataStd_AsciiString
//purpose :
//=======================================================================
TDataStd_AsciiString::TDataStd_AsciiString()
{
myString.Clear();

View File

@@ -0,0 +1,96 @@
// Created on: 2007-07-31
// Created by: Sergey ZARITCHNY
// Copyright (c) 2007-2014 OPEN CASCADE SAS
//
// 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 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.
//
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#ifndef _TDataStd_AsciiString_HeaderFile
#define _TDataStd_AsciiString_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <TCollection_AsciiString.hxx>
#include <TDF_Attribute.hxx>
#include <Standard_Boolean.hxx>
#include <Standard_OStream.hxx>
class Standard_GUID;
class TDF_Label;
class TCollection_AsciiString;
class TDF_Attribute;
class TDF_RelocationTable;
class TDataStd_AsciiString;
DEFINE_STANDARD_HANDLE(TDataStd_AsciiString, TDF_Attribute)
//! Used to define an AsciiString attribute containing a TCollection_AsciiString
class TDataStd_AsciiString : public TDF_Attribute
{
public:
//! class methods
//! =============
//! Returns the GUID of the attribute.
Standard_EXPORT static const Standard_GUID& GetID();
//! Finds, or creates an AsciiString attribute and sets the string.
//! the AsciiString attribute is returned.
//! AsciiString methods
//! ===================
Standard_EXPORT static Handle(TDataStd_AsciiString) Set (const TDF_Label& label, const TCollection_AsciiString& string);
Standard_EXPORT TDataStd_AsciiString();
Standard_EXPORT void Set (const TCollection_AsciiString& S);
Standard_EXPORT const TCollection_AsciiString& Get() const;
Standard_EXPORT Standard_Boolean IsEmpty() const;
Standard_EXPORT const Standard_GUID& ID() const;
Standard_EXPORT void Restore (const Handle(TDF_Attribute)& with);
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const;
Standard_EXPORT void Paste (const Handle(TDF_Attribute)& into, const Handle(TDF_RelocationTable)& RT) const;
Standard_EXPORT virtual Standard_OStream& Dump (Standard_OStream& anOS) const Standard_OVERRIDE;
DEFINE_STANDARD_RTTI(TDataStd_AsciiString,TDF_Attribute)
protected:
private:
TCollection_AsciiString myString;
};
#endif // _TDataStd_AsciiString_HeaderFile

View File

@@ -1,120 +0,0 @@
-- Created on: 2007-05-29
-- Created by: Vlad Romashko
-- Copyright (c) 2007-2014 OPEN CASCADE SAS
--
-- 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 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.
--
-- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement.
class BooleanArray from TDataStd inherits Attribute from TDF
---Purpose: An array of boolean values.
uses
Attribute from TDF,
GUID from Standard,
Label from TDF,
RelocationTable from TDF,
HArray1OfByte from TColStd
is
---Purpose: Static methods
-- ==============
GetID (myclass)
---C++: return const &
---Purpose: Returns an ID for array.
returns GUID from Standard;
Set (myclass;
label : Label from TDF;
lower, upper : Integer from Standard)
---Purpose: Finds or creates an attribute with the array.
returns BooleanArray from TDataStd;
---Category: BooleanArray methods
-- ====================
Init (me : mutable;
lower, upper : Integer from Standard);
---Purpose: Initialize the inner array with bounds from <lower> to <upper>
SetValue (me : mutable;
index :Integer from Standard;
value : Boolean from Standard);
---Purpose: Sets the <Index>th element of the array to <Value>
-- OutOfRange exception is raised if <Index> doesn't respect Lower and Upper bounds of the internal array.
Value (me;
Index : Integer from Standard)
---Purpose: Return the value of the <Index>th element of the array.
---C++: alias operator ()
returns Boolean from Standard;
Lower (me)
---Purpose: Returns the lower boundary of the array.
returns Integer from Standard;
Upper (me)
---Purpose: Returns the upper boundary of the array.
returns Integer from Standard;
Length (me)
---Purpose: Returns the number of elements in the array.
returns Integer from Standard;
---Category: Advanced area
-- =============
InternalArray (me)
---C++: return const &
returns HArray1OfByte from TColStd;
SetInternalArray (me : mutable;
values : HArray1OfByte from TColStd);
---Category: Methodes of TDF_Attribute
-- =========================
Create
returns BooleanArray from TDataStd;
ID (me)
---C++: return const &
returns GUID from Standard;
Restore (me: mutable;
with : Attribute from TDF);
NewEmpty (me)
returns Attribute from TDF;
Paste (me; into : Attribute from TDF;
RT : RelocationTable from TDF);
Dump (me;
OS : in out OStream from Standard)
returns OStream from Standard
is redefined;
---C++: return &
fields
myValues : HArray1OfByte from TColStd;
myLower : Integer from Standard;
myUpper : Integer from Standard;
end BooleanArray;

View File

@@ -13,7 +13,13 @@
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#include <TDataStd_BooleanArray.ixx>
#include <Standard_GUID.hxx>
#include <Standard_Type.hxx>
#include <TDataStd_BooleanArray.hxx>
#include <TDF_Attribute.hxx>
#include <TDF_Label.hxx>
#include <TDF_RelocationTable.hxx>
static Standard_Integer DegreeOf2(const Standard_Integer degree)
{

View File

@@ -0,0 +1,116 @@
// Created on: 2007-05-29
// Created by: Vlad Romashko
// Copyright (c) 2007-2014 OPEN CASCADE SAS
//
// 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 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.
//
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#ifndef _TDataStd_BooleanArray_HeaderFile
#define _TDataStd_BooleanArray_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <TColStd_HArray1OfByte.hxx>
#include <Standard_Integer.hxx>
#include <TDF_Attribute.hxx>
#include <Standard_Boolean.hxx>
#include <Standard_OStream.hxx>
class Standard_GUID;
class TDF_Label;
class TDF_Attribute;
class TDF_RelocationTable;
class TDataStd_BooleanArray;
DEFINE_STANDARD_HANDLE(TDataStd_BooleanArray, TDF_Attribute)
//! An array of boolean values.
class TDataStd_BooleanArray : public TDF_Attribute
{
public:
//! Static methods
//! ==============
//! Returns an ID for array.
Standard_EXPORT static const Standard_GUID& GetID();
//! Finds or creates an attribute with the array.
Standard_EXPORT static Handle(TDataStd_BooleanArray) Set (const TDF_Label& label, const Standard_Integer lower, const Standard_Integer upper);
//! Initialize the inner array with bounds from <lower> to <upper>
Standard_EXPORT void Init (const Standard_Integer lower, const Standard_Integer upper);
//! Sets the <Index>th element of the array to <Value>
//! OutOfRange exception is raised if <Index> doesn't respect Lower and Upper bounds of the internal array.
Standard_EXPORT void SetValue (const Standard_Integer index, const Standard_Boolean value);
//! Return the value of the <Index>th element of the array.
Standard_EXPORT Standard_Boolean Value (const Standard_Integer Index) const;
Standard_Boolean operator () (const Standard_Integer Index) const
{
return Value(Index);
}
//! Returns the lower boundary of the array.
Standard_EXPORT Standard_Integer Lower() const;
//! Returns the upper boundary of the array.
Standard_EXPORT Standard_Integer Upper() const;
//! Returns the number of elements in the array.
Standard_EXPORT Standard_Integer Length() const;
Standard_EXPORT const Handle(TColStd_HArray1OfByte)& InternalArray() const;
Standard_EXPORT void SetInternalArray (const Handle(TColStd_HArray1OfByte)& values);
Standard_EXPORT TDataStd_BooleanArray();
Standard_EXPORT const Standard_GUID& ID() const;
Standard_EXPORT void Restore (const Handle(TDF_Attribute)& with);
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const;
Standard_EXPORT void Paste (const Handle(TDF_Attribute)& into, const Handle(TDF_RelocationTable)& RT) const;
Standard_EXPORT virtual Standard_OStream& Dump (Standard_OStream& OS) const Standard_OVERRIDE;
DEFINE_STANDARD_RTTI(TDataStd_BooleanArray,TDF_Attribute)
protected:
private:
Handle(TColStd_HArray1OfByte) myValues;
Standard_Integer myLower;
Standard_Integer myUpper;
};
#endif // _TDataStd_BooleanArray_HeaderFile

View File

@@ -1,102 +0,0 @@
-- Created on: 2007-05-29
-- Created by: Vlad Romashko
-- Copyright (c) 2007-2014 OPEN CASCADE SAS
--
-- 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 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.
--
-- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement.
class BooleanList from TDataStd inherits Attribute from TDF
---Purpose: Contains a list of bolleans.
uses
Attribute from TDF,
GUID from Standard,
Label from TDF,
RelocationTable from TDF,
ListOfByte from TDataStd
is
---Purpose: Static methods
-- ==============
GetID (myclass)
---C++: return const &
---Purpose: Returns the ID of the list of booleans attribute.
returns GUID from Standard;
Set (myclass; label : Label from TDF)
---Purpose: Finds or creates a list of boolean values attribute.
returns BooleanList from TDataStd;
---Category: BooleanList methods
-- ===================
Create
returns BooleanList from TDataStd;
IsEmpty (me)
returns Boolean from Standard;
Extent (me)
returns Integer from Standard;
Prepend (me : mutable;
value : Boolean from Standard);
Append (me : mutable;
value : Boolean from Standard);
Clear (me : mutable);
First (me)
returns Boolean from Standard;
Last (me)
returns Boolean from Standard;
List (me)
---C++: return const &
---Purpose: 1 - means TRUE,
-- 0 - means FALSE.
returns ListOfByte from TDataStd;
---Category: Methodes of TDF_Attribute
-- =========================
ID (me)
---C++: return const &
returns GUID from Standard;
Restore (me: mutable; With : Attribute from TDF);
NewEmpty (me)
returns Attribute from TDF;
Paste (me; Into : Attribute from TDF;
RT : RelocationTable from TDF);
Dump(me; anOS : in out OStream from Standard)
returns OStream from Standard
is redefined;
---C++: return &
fields
myList : ListOfByte from TDataStd;
end BooleanList;

View File

@@ -13,8 +13,14 @@
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#include <TDataStd_BooleanList.ixx>
#include <Standard_GUID.hxx>
#include <Standard_Type.hxx>
#include <TDataStd_BooleanList.hxx>
#include <TDataStd_ListIteratorOfListOfByte.hxx>
#include <TDF_Attribute.hxx>
#include <TDF_Label.hxx>
#include <TDF_RelocationTable.hxx>
//=======================================================================
//function : GetID

View File

@@ -0,0 +1,105 @@
// Created on: 2007-05-29
// Created by: Vlad Romashko
// Copyright (c) 2007-2014 OPEN CASCADE SAS
//
// 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 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.
//
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#ifndef _TDataStd_BooleanList_HeaderFile
#define _TDataStd_BooleanList_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <TDataStd_ListOfByte.hxx>
#include <TDF_Attribute.hxx>
#include <Standard_Boolean.hxx>
#include <Standard_Integer.hxx>
#include <Standard_OStream.hxx>
class Standard_GUID;
class TDF_Label;
class TDF_Attribute;
class TDF_RelocationTable;
class TDataStd_BooleanList;
DEFINE_STANDARD_HANDLE(TDataStd_BooleanList, TDF_Attribute)
//! Contains a list of bolleans.
class TDataStd_BooleanList : public TDF_Attribute
{
public:
//! Static methods
//! ==============
//! Returns the ID of the list of booleans attribute.
Standard_EXPORT static const Standard_GUID& GetID();
//! Finds or creates a list of boolean values attribute.
Standard_EXPORT static Handle(TDataStd_BooleanList) Set (const TDF_Label& label);
Standard_EXPORT TDataStd_BooleanList();
Standard_EXPORT Standard_Boolean IsEmpty() const;
Standard_EXPORT Standard_Integer Extent() const;
Standard_EXPORT void Prepend (const Standard_Boolean value);
Standard_EXPORT void Append (const Standard_Boolean value);
Standard_EXPORT void Clear();
Standard_EXPORT Standard_Boolean First() const;
Standard_EXPORT Standard_Boolean Last() const;
//! 1 - means TRUE,
//! 0 - means FALSE.
Standard_EXPORT const TDataStd_ListOfByte& List() const;
Standard_EXPORT const Standard_GUID& ID() const;
Standard_EXPORT void Restore (const Handle(TDF_Attribute)& With);
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const;
Standard_EXPORT void Paste (const Handle(TDF_Attribute)& Into, const Handle(TDF_RelocationTable)& RT) const;
Standard_EXPORT virtual Standard_OStream& Dump (Standard_OStream& anOS) const Standard_OVERRIDE;
DEFINE_STANDARD_RTTI(TDataStd_BooleanList,TDF_Attribute)
protected:
private:
TDataStd_ListOfByte myList;
};
#endif // _TDataStd_BooleanList_HeaderFile

View File

@@ -1,153 +0,0 @@
-- Created on: 2007-05-29
-- Created by: Vlad Romashko
-- Copyright (c) 2007-2014 OPEN CASCADE SAS
--
-- 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 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.
--
-- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement.
class ByteArray from TDataStd inherits Attribute from TDF
---Purpose: An array of Byte (unsigned char) values.
uses
GUID from Standard,
Attribute from TDF,
Label from TDF,
RelocationTable from TDF,
DeltaOnModification from TDF,
HArray1OfByte from TColStd
is
---Purpose: Static methods
-- ==============
GetID (myclass)
---C++: return const &
---Purpose: Returns an ID for array.
returns GUID from Standard;
Set (myclass;
label : Label from TDF;
lower, upper : Integer from Standard;
isDelta : Boolean from Standard = Standard_False)
---Purpose: Finds or creates an attribute with the array on the specified label.
-- If <isDelta> == False, DefaultDeltaOnModification is used.
-- If <isDelta> == True, DeltaOnModification of the current attribute is used.
-- If attribute is already set, all input parameters are refused and the found
-- attribute is returned.
returns ByteArray from TDataStd;
---Category: ByteArray methods
-- =================
Init (me : mutable;
lower, upper : Integer from Standard);
---Purpose: Initialize the inner array with bounds from <lower> to <upper>
SetValue (me : mutable;
index :Integer from Standard;
value : Byte from Standard);
---Purpose: Sets the <Index>th element of the array to <Value>
-- OutOfRange exception is raised if <Index> doesn't respect Lower and Upper bounds of the internal array.
Value (me;
Index : Integer from Standard)
---Purpose: Return the value of the <Index>th element of the array.
---C++: alias operator ()
returns Byte from Standard;
Lower (me)
---Purpose: Returns the lower boundary of the array.
returns Integer from Standard;
Upper (me)
---Purpose: Returns the upper boundary of the array.
returns Integer from Standard;
Length (me)
---Purpose: Returns the number of elements in the array.
returns Integer from Standard;
---Category: Advanced area
-- =============
InternalArray (me)
---C++: return const
---C++: inline
returns HArray1OfByte from TColStd;
ChangeArray (me : mutable;
newArray : HArray1OfByte from TColStd;
isCheckItems : Boolean = Standard_True);
---Purpose: Sets the inner array <myValue> of the attribute to
-- <newArray>. If value of <newArray> differs from <myValue>, Backup performed
-- and myValue refers to new instance of HArray1OfInteger that holds <newArray>
-- values.
-- If <isCheckItems> equal True each item of <newArray> will be checked with each
-- item of <myValue> for coincidence (to avoid backup).
GetDelta(me) returns Boolean from Standard;
---C++: inline
SetDelta(me : mutable; isDelta : Boolean from Standard);
---C++: inline
---Purpose: for internal use only!
RemoveArray(me : mutable) is private;
---C++: inline
---Category: Methodes of TDF_Attribute
-- =========================
Create
returns ByteArray from TDataStd;
ID (me)
---C++: return const &
returns GUID from Standard;
Restore (me: mutable;
with : Attribute from TDF);
NewEmpty (me)
returns Attribute from TDF;
Paste (me; into : Attribute from TDF;
RT : RelocationTable from TDF);
Dump (me;
OS : in out OStream from Standard)
returns OStream from Standard
is redefined;
---C++: return &
---Category: methods to be added for using in DeltaOn Modification
-- =====================================================
DeltaOnModification(me; anOldAttribute : Attribute from TDF)
returns DeltaOnModification from TDF
---Purpose : Makes a DeltaOnModification between <me> and
-- <anOldAttribute>.
is redefined virtual;
fields
myValue : HArray1OfByte from TColStd;
myIsDelta : Boolean from Standard;
friends
class DeltaOnModificationOfByteArray from TDataStd
end ByteArray;

View File

@@ -13,9 +13,16 @@
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#include <TDataStd_ByteArray.ixx>
#include <Standard_GUID.hxx>
#include <Standard_Type.hxx>
#include <TDataStd_ByteArray.hxx>
#include <TDataStd_DeltaOnModificationOfByteArray.hxx>
#include <TDF_Attribute.hxx>
#include <TDF_DefaultDeltaOnModification.hxx>
#include <TDF_DeltaOnModification.hxx>
#include <TDF_Label.hxx>
#include <TDF_RelocationTable.hxx>
//=======================================================================
//function : GetID

View File

@@ -0,0 +1,141 @@
// Created on: 2007-05-29
// Created by: Vlad Romashko
// Copyright (c) 2007-2014 OPEN CASCADE SAS
//
// 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 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.
//
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#ifndef _TDataStd_ByteArray_HeaderFile
#define _TDataStd_ByteArray_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <TColStd_HArray1OfByte.hxx>
#include <Standard_Boolean.hxx>
#include <TDF_Attribute.hxx>
#include <Standard_Integer.hxx>
#include <Standard_Byte.hxx>
#include <Standard_OStream.hxx>
class TDataStd_DeltaOnModificationOfByteArray;
class Standard_GUID;
class TDF_Label;
class TDF_Attribute;
class TDF_RelocationTable;
class TDF_DeltaOnModification;
class TDataStd_ByteArray;
DEFINE_STANDARD_HANDLE(TDataStd_ByteArray, TDF_Attribute)
//! An array of Byte (unsigned char) values.
class TDataStd_ByteArray : public TDF_Attribute
{
public:
//! Static methods
//! ==============
//! Returns an ID for array.
Standard_EXPORT static const Standard_GUID& GetID();
//! Finds or creates an attribute with the array on the specified label.
//! If <isDelta> == False, DefaultDeltaOnModification is used.
//! If <isDelta> == True, DeltaOnModification of the current attribute is used.
//! If attribute is already set, all input parameters are refused and the found
//! attribute is returned.
Standard_EXPORT static Handle(TDataStd_ByteArray) Set (const TDF_Label& label, const Standard_Integer lower, const Standard_Integer upper, const Standard_Boolean isDelta = Standard_False);
//! Initialize the inner array with bounds from <lower> to <upper>
Standard_EXPORT void Init (const Standard_Integer lower, const Standard_Integer upper);
//! Sets the <Index>th element of the array to <Value>
//! OutOfRange exception is raised if <Index> doesn't respect Lower and Upper bounds of the internal array.
Standard_EXPORT void SetValue (const Standard_Integer index, const Standard_Byte value);
//! Return the value of the <Index>th element of the array.
Standard_EXPORT Standard_Byte Value (const Standard_Integer Index) const;
Standard_Byte operator () (const Standard_Integer Index) const
{
return Value(Index);
}
//! Returns the lower boundary of the array.
Standard_EXPORT Standard_Integer Lower() const;
//! Returns the upper boundary of the array.
Standard_EXPORT Standard_Integer Upper() const;
//! Returns the number of elements in the array.
Standard_EXPORT Standard_Integer Length() const;
const Handle(TColStd_HArray1OfByte) InternalArray() const;
//! Sets the inner array <myValue> of the attribute to
//! <newArray>. If value of <newArray> differs from <myValue>, Backup performed
//! and myValue refers to new instance of HArray1OfInteger that holds <newArray>
//! values.
//! If <isCheckItems> equal True each item of <newArray> will be checked with each
//! item of <myValue> for coincidence (to avoid backup).
Standard_EXPORT void ChangeArray (const Handle(TColStd_HArray1OfByte)& newArray, const Standard_Boolean isCheckItems = Standard_True);
Standard_Boolean GetDelta() const;
//! for internal use only!
void SetDelta (const Standard_Boolean isDelta);
Standard_EXPORT TDataStd_ByteArray();
Standard_EXPORT const Standard_GUID& ID() const;
Standard_EXPORT void Restore (const Handle(TDF_Attribute)& with);
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const;
Standard_EXPORT void Paste (const Handle(TDF_Attribute)& into, const Handle(TDF_RelocationTable)& RT) const;
Standard_EXPORT virtual Standard_OStream& Dump (Standard_OStream& OS) const Standard_OVERRIDE;
//! Makes a DeltaOnModification between <me> and
//! <anOldAttribute>.
Standard_EXPORT virtual Handle(TDF_DeltaOnModification) DeltaOnModification (const Handle(TDF_Attribute)& anOldAttribute) const Standard_OVERRIDE;
friend class TDataStd_DeltaOnModificationOfByteArray;
DEFINE_STANDARD_RTTI(TDataStd_ByteArray,TDF_Attribute)
protected:
private:
void RemoveArray();
Handle(TColStd_HArray1OfByte) myValue;
Standard_Boolean myIsDelta;
};
#include <TDataStd_ByteArray.lxx>
#endif // _TDataStd_ByteArray_HeaderFile

View File

@@ -1,76 +0,0 @@
-- Created on: 2000-01-26
-- Created by: Denis PASCAL
-- Copyright (c) 2000-2014 OPEN CASCADE SAS
--
-- 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 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.
--
-- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement.
class ChildNodeIterator from TDataStd
---Purpose: Iterates on the ChildStepren step of a step, at the
-- first level only. It is possible to ask the
-- iterator to explore all the sub step levels of the
-- given one, with the option "allLevels".
uses TreeNode from TDataStd
is
Create
returns ChildNodeIterator from TDataStd;
---Purpose: Creates an empty iterator.
Create(aTreeNode : TreeNode from TDataStd;
allLevels : Boolean from Standard = Standard_False)
returns ChildNodeIterator from TDataStd;
---Purpose: Iterates on the ChildStepren of the given Step. If
-- <allLevels> option is set to true, it explores not
-- only the first, but all the sub Step levels.
Initialize(me : in out;
aTreeNode : TreeNode from TDataStd;
allLevels : Boolean from Standard = Standard_False);
---Purpose: Initializes the iteration on the Children Step of
-- the given Step. If <allLevels> option is set to
-- true, it explores not only the first, but all the
-- sub Step levels.
More(me) returns Boolean;
---C++: inline
---Purpose: Returns True if there is a current Item in the
-- iteration.
Next(me : in out);
---Purpose: Move to the next Item
NextBrother(me : in out);
---Purpose: Move to the next Brother. If there is none, go up
-- etc. This method is interesting only with
-- "allLevels" behavior, because it avoids to explore
-- the current Step ChildStepren.
Value(me) returns TreeNode from TDataStd;
---C++: inline
---C++: return const &
---Purpose: Returns the current item; a null Step if there is
-- no one.
fields
myNode : TreeNode from TDataStd;
myFirstLevel : Integer from Standard;
end ChildNodeIterator;

View File

@@ -13,7 +13,9 @@
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#include <TDataStd_ChildNodeIterator.ixx>
#include <TDataStd_ChildNodeIterator.hxx>
#include <TDataStd_TreeNode.hxx>
#define ChildNodeIterator_UpToBrother \
{ \

View File

@@ -0,0 +1,96 @@
// Created on: 2000-01-26
// Created by: Denis PASCAL
// Copyright (c) 2000-2014 OPEN CASCADE SAS
//
// 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 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.
//
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#ifndef _TDataStd_ChildNodeIterator_HeaderFile
#define _TDataStd_ChildNodeIterator_HeaderFile
#include <Standard.hxx>
#include <Standard_DefineAlloc.hxx>
#include <Standard_Handle.hxx>
#include <Standard_Integer.hxx>
#include <Standard_Boolean.hxx>
class TDataStd_TreeNode;
//! Iterates on the ChildStepren step of a step, at the
//! first level only. It is possible to ask the
//! iterator to explore all the sub step levels of the
//! given one, with the option "allLevels".
class TDataStd_ChildNodeIterator
{
public:
DEFINE_STANDARD_ALLOC
//! Creates an empty iterator.
Standard_EXPORT TDataStd_ChildNodeIterator();
//! Iterates on the ChildStepren of the given Step. If
//! <allLevels> option is set to true, it explores not
//! only the first, but all the sub Step levels.
Standard_EXPORT TDataStd_ChildNodeIterator(const Handle(TDataStd_TreeNode)& aTreeNode, const Standard_Boolean allLevels = Standard_False);
//! Initializes the iteration on the Children Step of
//! the given Step. If <allLevels> option is set to
//! true, it explores not only the first, but all the
//! sub Step levels.
Standard_EXPORT void Initialize (const Handle(TDataStd_TreeNode)& aTreeNode, const Standard_Boolean allLevels = Standard_False);
//! Returns True if there is a current Item in the
//! iteration.
Standard_Boolean More() const;
//! Move to the next Item
Standard_EXPORT void Next();
//! Move to the next Brother. If there is none, go up
//! etc. This method is interesting only with
//! "allLevels" behavior, because it avoids to explore
//! the current Step ChildStepren.
Standard_EXPORT void NextBrother();
//! Returns the current item; a null Step if there is
//! no one.
const Handle(TDataStd_TreeNode)& Value() const;
protected:
private:
Handle(TDataStd_TreeNode) myNode;
Standard_Integer myFirstLevel;
};
#include <TDataStd_ChildNodeIterator.lxx>
#endif // _TDataStd_ChildNodeIterator_HeaderFile

View File

@@ -1,98 +0,0 @@
-- Created on: 1998-01-15
-- Created by: Denis PASCAL
-- Copyright (c) 1998-1999 Matra Datavision
-- Copyright (c) 1999-2014 OPEN CASCADE SAS
--
-- 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 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.
--
-- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement.
class Comment from TDataStd inherits Attribute from TDF
---Purpose: Comment attribute. may be associated to any label
-- to store user comment.
uses Attribute from TDF,
Label from TDF,
GUID from Standard,
ExtendedString from TCollection,
DataSet from TDF,
RelocationTable from TDF,
AttributeSequence from TDF,
Data from TDF
is
---Purpose: class methods
-- =============
GetID (myclass)
---C++: return const &
---Purpose: Returns the GUID for comments.
returns GUID from Standard;
Set (myclass; label : Label from TDF)
---Purpose: Find, or create a Comment attribute. the Comment
-- attribute is returned.
returns Comment from TDataStd;
Set (myclass; label : Label from TDF; string : ExtendedString from TCollection)
---Purpose: Finds, or creates a Comment attribute and sets the string.
-- the Comment attribute is returned.
returns Comment from TDataStd;
---Purpose: Comment methods
-- ============
Create
returns Comment from TDataStd;
Set (me : mutable; S : ExtendedString from TCollection);
Get (me)
returns ExtendedString from TCollection;
---Purpose:
-- Returns the comment attribute.
---C++: return const &
---Category: TDF_Attribute methods
-- =====================
ID (me)
---C++: return const &
returns GUID from Standard;
Restore (me: mutable; with : Attribute from TDF);
NewEmpty (me)
returns Attribute from TDF;
Paste (me; into : Attribute from TDF;
RT : RelocationTable from TDF);
Dump(me; anOS : in out OStream from Standard)
returns OStream from Standard
is redefined;
---C++: return &
AfterRetrieval(me: mutable;
forceIt : Boolean from Standard = Standard_False)
returns Boolean from Standard
is redefined static;
fields
myString : ExtendedString from TCollection;
end Comment;

View File

@@ -14,17 +14,20 @@
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#include <TDataStd_Comment.ixx>
#include <Standard_GUID.hxx>
#include <Standard_Type.hxx>
#include <TCollection_AsciiString.hxx>
#include <TCollection_AsciiString.hxx>
#include <TCollection_ExtendedString.hxx>
#include <TDataStd_Comment.hxx>
#include <TDataStd_Integer.hxx>
#include <TDataStd_Real.hxx>
#include <TDF_Attribute.hxx>
#include <TDF_ChildIDIterator.hxx>
#include <TDF_ChildIterator.hxx>
#include <TDF_Label.hxx>
#include <TDF_RelocationTable.hxx>
#include <TDF_Tool.hxx>
#include <TDataStd_Integer.hxx>
#include <TDataStd_Real.hxx>
#define lid1 45
#define lid2 36

View File

@@ -0,0 +1,104 @@
// Created on: 1998-01-15
// Created by: Denis PASCAL
// Copyright (c) 1998-1999 Matra Datavision
// Copyright (c) 1999-2014 OPEN CASCADE SAS
//
// 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 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.
//
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#ifndef _TDataStd_Comment_HeaderFile
#define _TDataStd_Comment_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <TCollection_ExtendedString.hxx>
#include <TDF_Attribute.hxx>
#include <Standard_OStream.hxx>
#include <Standard_Boolean.hxx>
class Standard_GUID;
class TDF_Label;
class TCollection_ExtendedString;
class TDF_Attribute;
class TDF_RelocationTable;
class TDataStd_Comment;
DEFINE_STANDARD_HANDLE(TDataStd_Comment, TDF_Attribute)
//! Comment attribute. may be associated to any label
//! to store user comment.
class TDataStd_Comment : public TDF_Attribute
{
public:
//! class methods
//! =============
//! Returns the GUID for comments.
Standard_EXPORT static const Standard_GUID& GetID();
//! Find, or create a Comment attribute. the Comment
//! attribute is returned.
Standard_EXPORT static Handle(TDataStd_Comment) Set (const TDF_Label& label);
//! Finds, or creates a Comment attribute and sets the string.
//! the Comment attribute is returned.
//! Comment methods
//! ============
Standard_EXPORT static Handle(TDataStd_Comment) Set (const TDF_Label& label, const TCollection_ExtendedString& string);
Standard_EXPORT TDataStd_Comment();
Standard_EXPORT void Set (const TCollection_ExtendedString& S);
//! Returns the comment attribute.
Standard_EXPORT const TCollection_ExtendedString& Get() const;
Standard_EXPORT const Standard_GUID& ID() const;
Standard_EXPORT void Restore (const Handle(TDF_Attribute)& with);
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const;
Standard_EXPORT void Paste (const Handle(TDF_Attribute)& into, const Handle(TDF_RelocationTable)& RT) const;
Standard_EXPORT virtual Standard_OStream& Dump (Standard_OStream& anOS) const Standard_OVERRIDE;
Standard_EXPORT Standard_Boolean AfterRetrieval (const Standard_Boolean forceIt = Standard_False) Standard_OVERRIDE;
DEFINE_STANDARD_RTTI(TDataStd_Comment,TDF_Attribute)
protected:
private:
TCollection_ExtendedString myString;
};
#endif // _TDataStd_Comment_HeaderFile

View File

@@ -1,89 +0,0 @@
-- Created on: 1999-08-02
-- Created by: Denis PASCAL
-- Copyright (c) 1999 Matra Datavision
-- Copyright (c) 1999-2014 OPEN CASCADE SAS
--
-- 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 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.
--
-- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement.
class Current from TDataStd inherits Attribute from TDF
---Purpose: this attribute, located at root label, manage an
-- access to a current label.
uses Attribute from TDF,
Label from TDF,
GUID from Standard,
DataSet from TDF,
RelocationTable from TDF
is
---Purpose: class methods
-- =============
GetID (myclass)
---C++: return const &
returns GUID from Standard;
Set (myclass; L : Label from TDF);
---Purpose: Set <L> as current of <L> Framework.
Get (myclass; acces : Label from TDF)
---Purpose: returns current of <acces> Framework. raise if (!Has)
returns Label from TDF;
Has (myclass; acces : Label from TDF)
---Purpose: returns True if a current label is managed in <acces>
-- Framework.
returns Boolean from Standard;
---Purpose: class methods
-- =============
Create
returns Current from TDataStd;
SetLabel (me : mutable; current : Label from TDF);
GetLabel (me)
returns Label from TDF;
---Category: TDF_Attribute methods
-- =====================
ID (me)
---C++: return const &
returns GUID from Standard;
Restore (me: mutable; With : Attribute from TDF);
NewEmpty (me)
returns Attribute from TDF;
Paste (me; Into : Attribute from TDF;
RT : RelocationTable from TDF);
Dump(me; anOS : in out OStream from Standard)
returns OStream from Standard
is redefined;
---C++: return &
fields
myLabel : Label from TDF;
end Current;

View File

@@ -14,15 +14,20 @@
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#include <TDataStd_Current.ixx>
#include <TDF_Data.hxx>
#include <Standard_DomainError.hxx>
#include <Standard_GUID.hxx>
#include <Standard_Type.hxx>
#include <TDataStd_Current.hxx>
#include <TDF_Attribute.hxx>
#include <TDF_Data.hxx>
#include <TDF_Label.hxx>
#include <TDF_RelocationTable.hxx>
//=======================================================================
//function : GetID
//purpose :
//=======================================================================
const Standard_GUID& TDataStd_Current::GetID ()
{
static Standard_GUID TDataStd_CurrentID("2a96b623-ec8b-11d0-bee7-080009dc3333");

View File

@@ -0,0 +1,100 @@
// Created on: 1999-08-02
// Created by: Denis PASCAL
// Copyright (c) 1999 Matra Datavision
// Copyright (c) 1999-2014 OPEN CASCADE SAS
//
// 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 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.
//
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#ifndef _TDataStd_Current_HeaderFile
#define _TDataStd_Current_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <TDF_Label.hxx>
#include <TDF_Attribute.hxx>
#include <Standard_Boolean.hxx>
#include <Standard_OStream.hxx>
class Standard_GUID;
class TDF_Label;
class TDF_Attribute;
class TDF_RelocationTable;
class TDataStd_Current;
DEFINE_STANDARD_HANDLE(TDataStd_Current, TDF_Attribute)
//! this attribute, located at root label, manage an
//! access to a current label.
class TDataStd_Current : public TDF_Attribute
{
public:
//! class methods
//! =============
Standard_EXPORT static const Standard_GUID& GetID();
//! Set <L> as current of <L> Framework.
Standard_EXPORT static void Set (const TDF_Label& L);
//! returns current of <acces> Framework. raise if (!Has)
Standard_EXPORT static TDF_Label Get (const TDF_Label& acces);
//! returns True if a current label is managed in <acces>
//! Framework.
//! class methods
//! =============
Standard_EXPORT static Standard_Boolean Has (const TDF_Label& acces);
Standard_EXPORT TDataStd_Current();
Standard_EXPORT void SetLabel (const TDF_Label& current);
Standard_EXPORT TDF_Label GetLabel() const;
Standard_EXPORT const Standard_GUID& ID() const;
Standard_EXPORT void Restore (const Handle(TDF_Attribute)& With);
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const;
Standard_EXPORT void Paste (const Handle(TDF_Attribute)& Into, const Handle(TDF_RelocationTable)& RT) const;
Standard_EXPORT virtual Standard_OStream& Dump (Standard_OStream& anOS) const Standard_OVERRIDE;
DEFINE_STANDARD_RTTI(TDataStd_Current,TDF_Attribute)
protected:
private:
TDF_Label myLabel;
};
#endif // _TDataStd_Current_HeaderFile

View File

@@ -1,44 +0,0 @@
-- Created on: 2007-12-05
-- Created by: Sergey ZARITCHNY
-- Copyright (c) 2007-2014 OPEN CASCADE SAS
--
-- 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 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.
--
-- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement.
class DeltaOnModificationOfByteArray from TDataStd inherits DeltaOnModification from TDF
---Purpose: This class provides default services for an
-- AttributeDelta on a MODIFICATION action.
uses
Attribute from TDF,
HArray1OfInteger from TColStd,
HArray1OfByte from TColStd,
ByteArray from TDataStd
is
Create (Arr : ByteArray from TDataStd)
returns DeltaOnModificationOfByteArray from TDataStd;
---Purpose: Initializes a TDF_DeltaOnModification.
Apply (me : mutable)
is redefined virtual;
---Purpose: Applies the delta to the attribute.
fields
myIndxes : HArray1OfInteger from TColStd;
myValues : HArray1OfByte from TColStd;
myUp1 : Integer from Standard;
myUp2 : Integer from Standard;
end DeltaOnModificationOfByteArray;

View File

@@ -13,15 +13,17 @@
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#include <TDataStd_DeltaOnModificationOfByteArray.ixx>
#include <Standard_Type.hxx>
#include <TColStd_HArray1OfByte.hxx>
#include <TColStd_HArray1OfInteger.hxx>
#include <TColStd_ListIteratorOfListOfInteger.hxx>
#include <TColStd_ListOfInteger.hxx>
#include <TDataStd_ByteArray.hxx>
#include <TDataStd_DeltaOnModificationOfByteArray.hxx>
#include <TDF_AttributeIterator.hxx>
#include <TDF_DeltaOnModification.hxx>
#include <TDF_Label.hxx>
#include <TColStd_HArray1OfInteger.hxx>
#include <TColStd_HArray1OfByte.hxx>
#include <TColStd_ListOfInteger.hxx>
#include <TColStd_ListIteratorOfListOfInteger.hxx>
#include <TDF_AttributeIterator.hxx>
#ifdef OCCT_DEBUG
#define MAXUP 1000

View File

@@ -0,0 +1,73 @@
// Created on: 2007-12-05
// Created by: Sergey ZARITCHNY
// Copyright (c) 2007-2014 OPEN CASCADE SAS
//
// 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 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.
//
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#ifndef _TDataStd_DeltaOnModificationOfByteArray_HeaderFile
#define _TDataStd_DeltaOnModificationOfByteArray_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <TColStd_HArray1OfInteger.hxx>
#include <TColStd_HArray1OfByte.hxx>
#include <Standard_Integer.hxx>
#include <TDF_DeltaOnModification.hxx>
class TDataStd_ByteArray;
class TDataStd_DeltaOnModificationOfByteArray;
DEFINE_STANDARD_HANDLE(TDataStd_DeltaOnModificationOfByteArray, TDF_DeltaOnModification)
//! This class provides default services for an
//! AttributeDelta on a MODIFICATION action.
class TDataStd_DeltaOnModificationOfByteArray : public TDF_DeltaOnModification
{
public:
//! Initializes a TDF_DeltaOnModification.
Standard_EXPORT TDataStd_DeltaOnModificationOfByteArray(const Handle(TDataStd_ByteArray)& Arr);
//! Applies the delta to the attribute.
Standard_EXPORT virtual void Apply() Standard_OVERRIDE;
DEFINE_STANDARD_RTTI(TDataStd_DeltaOnModificationOfByteArray,TDF_DeltaOnModification)
protected:
private:
Handle(TColStd_HArray1OfInteger) myIndxes;
Handle(TColStd_HArray1OfByte) myValues;
Standard_Integer myUp1;
Standard_Integer myUp2;
};
#endif // _TDataStd_DeltaOnModificationOfByteArray_HeaderFile

View File

@@ -1,43 +0,0 @@
-- Created on: 2007-12-04
-- Created by: Sergey ZARITCHNY
-- Copyright (c) 2007-2014 OPEN CASCADE SAS
--
-- 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 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.
--
-- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement.
class DeltaOnModificationOfExtStringArray from TDataStd inherits DeltaOnModification from TDF
---Purpose: This class provides default services for an
-- AttributeDelta on a MODIFICATION action.
uses
Attribute from TDF,
HArray1OfExtendedString from TColStd,
ExtStringArray from TDataStd,
HArray1OfInteger from TColStd
is
Create (Arr : ExtStringArray from TDataStd)
returns DeltaOnModificationOfExtStringArray from TDataStd;
---Purpose: Initializes a TDF_DeltaOnModification.
Apply (me : mutable)
is redefined virtual;
---Purpose: Applies the delta to the attribute.
fields
myIndxes : HArray1OfInteger from TColStd;
myValues : HArray1OfExtendedString from TColStd;
myUp1 : Integer from Standard;
myUp2 : Integer from Standard;
end DeltaOnModificationOfExtStringArray;

View File

@@ -13,14 +13,16 @@
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#include <TDataStd_DeltaOnModificationOfExtStringArray.ixx>
#include <Standard_Type.hxx>
#include <TColStd_HArray1OfExtendedString.hxx>
#include <TColStd_ListIteratorOfListOfInteger.hxx>
#include <TColStd_ListOfInteger.hxx>
#include <TDataStd_DeltaOnModificationOfExtStringArray.hxx>
#include <TDataStd_ExtStringArray.hxx>
#include <TDF_AttributeIterator.hxx>
#include <TDF_DeltaOnModification.hxx>
#include <TDF_Label.hxx>
#include <TColStd_HArray1OfExtendedString.hxx>
#include <TColStd_ListOfInteger.hxx>
#include <TColStd_ListIteratorOfListOfInteger.hxx>
#include <TDF_AttributeIterator.hxx>
#ifdef OCCT_DEBUG
#define MAXUP 1000

View File

@@ -0,0 +1,73 @@
// Created on: 2007-12-04
// Created by: Sergey ZARITCHNY
// Copyright (c) 2007-2014 OPEN CASCADE SAS
//
// 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 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.
//
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#ifndef _TDataStd_DeltaOnModificationOfExtStringArray_HeaderFile
#define _TDataStd_DeltaOnModificationOfExtStringArray_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <TColStd_HArray1OfInteger.hxx>
#include <TColStd_HArray1OfExtendedString.hxx>
#include <Standard_Integer.hxx>
#include <TDF_DeltaOnModification.hxx>
class TDataStd_ExtStringArray;
class TDataStd_DeltaOnModificationOfExtStringArray;
DEFINE_STANDARD_HANDLE(TDataStd_DeltaOnModificationOfExtStringArray, TDF_DeltaOnModification)
//! This class provides default services for an
//! AttributeDelta on a MODIFICATION action.
class TDataStd_DeltaOnModificationOfExtStringArray : public TDF_DeltaOnModification
{
public:
//! Initializes a TDF_DeltaOnModification.
Standard_EXPORT TDataStd_DeltaOnModificationOfExtStringArray(const Handle(TDataStd_ExtStringArray)& Arr);
//! Applies the delta to the attribute.
Standard_EXPORT virtual void Apply() Standard_OVERRIDE;
DEFINE_STANDARD_RTTI(TDataStd_DeltaOnModificationOfExtStringArray,TDF_DeltaOnModification)
protected:
private:
Handle(TColStd_HArray1OfInteger) myIndxes;
Handle(TColStd_HArray1OfExtendedString) myValues;
Standard_Integer myUp1;
Standard_Integer myUp2;
};
#endif // _TDataStd_DeltaOnModificationOfExtStringArray_HeaderFile

View File

@@ -1,41 +0,0 @@
-- Created on: 2007-09-06
-- Created by: Sergey ZARITCHNY
-- Copyright (c) 2007-2014 OPEN CASCADE SAS
--
-- 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 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.
--
-- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement.
class DeltaOnModificationOfIntArray from TDataStd inherits DeltaOnModification from TDF
---Purpose: This class provides default services for an
-- AttributeDelta on a MODIFICATION action.
uses
Attribute from TDF,
HArray1OfInteger from TColStd,
IntegerArray from TDataStd
is
Create (Arr : IntegerArray from TDataStd)
returns DeltaOnModificationOfIntArray from TDataStd;
---Purpose: Initializes a TDF_DeltaOnModification.
Apply (me : mutable)
is redefined virtual;
---Purpose: Applies the delta to the attribute.
fields
myIndxes : HArray1OfInteger from TColStd;
myValues : HArray1OfInteger from TColStd;
myUp1 : Integer from Standard;
myUp2 : Integer from Standard;
end DeltaOnModificationOfIntArray;

View File

@@ -13,14 +13,17 @@
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#include <TDataStd_DeltaOnModificationOfIntArray.ixx>
#include <Standard_Type.hxx>
#include <TColStd_HArray1OfInteger.hxx>
#include <TColStd_ListIteratorOfListOfInteger.hxx>
#include <TColStd_ListOfInteger.hxx>
#include <TDataStd_DeltaOnModificationOfIntArray.hxx>
#include <TDataStd_IntegerArray.hxx>
#include <TDF_AttributeIterator.hxx>
#include <TDF_DeltaOnModification.hxx>
#include <TDF_Label.hxx>
#include <TColStd_HArray1OfInteger.hxx>
#include <TColStd_ListOfInteger.hxx>
#include <TColStd_ListIteratorOfListOfInteger.hxx>
#include <TDF_AttributeIterator.hxx>
#ifdef OCCT_DEBUG
#define MAXUP 1000
#endif

View File

@@ -0,0 +1,72 @@
// Created on: 2007-09-06
// Created by: Sergey ZARITCHNY
// Copyright (c) 2007-2014 OPEN CASCADE SAS
//
// 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 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.
//
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#ifndef _TDataStd_DeltaOnModificationOfIntArray_HeaderFile
#define _TDataStd_DeltaOnModificationOfIntArray_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <TColStd_HArray1OfInteger.hxx>
#include <Standard_Integer.hxx>
#include <TDF_DeltaOnModification.hxx>
class TDataStd_IntegerArray;
class TDataStd_DeltaOnModificationOfIntArray;
DEFINE_STANDARD_HANDLE(TDataStd_DeltaOnModificationOfIntArray, TDF_DeltaOnModification)
//! This class provides default services for an
//! AttributeDelta on a MODIFICATION action.
class TDataStd_DeltaOnModificationOfIntArray : public TDF_DeltaOnModification
{
public:
//! Initializes a TDF_DeltaOnModification.
Standard_EXPORT TDataStd_DeltaOnModificationOfIntArray(const Handle(TDataStd_IntegerArray)& Arr);
//! Applies the delta to the attribute.
Standard_EXPORT virtual void Apply() Standard_OVERRIDE;
DEFINE_STANDARD_RTTI(TDataStd_DeltaOnModificationOfIntArray,TDF_DeltaOnModification)
protected:
private:
Handle(TColStd_HArray1OfInteger) myIndxes;
Handle(TColStd_HArray1OfInteger) myValues;
Standard_Integer myUp1;
Standard_Integer myUp2;
};
#endif // _TDataStd_DeltaOnModificationOfIntArray_HeaderFile

View File

@@ -1,42 +0,0 @@
-- Created on: 2008-01-23
-- Created by: Sergey ZARITCHNY
-- Copyright (c) 2008-2014 OPEN CASCADE SAS
--
-- 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 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.
--
-- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement.
class DeltaOnModificationOfIntPackedMap from TDataStd inherits DeltaOnModification from TDF
---Purpose: This class provides default services for an
-- AttributeDelta on a MODIFICATION action.
uses
Attribute from TDF,
IntPackedMap from TDataStd,
HPackedMapOfInteger from TColStd
is
Create (Arr : IntPackedMap from TDataStd)
returns DeltaOnModificationOfIntPackedMap from TDataStd;
---Purpose: Initializes a TDF_DeltaOnModification.
Apply (me : mutable)
is redefined virtual;
---Purpose: Applies the delta to the attribute.
fields
myAddition : HPackedMapOfInteger from TColStd;
myDeletion : HPackedMapOfInteger from TColStd;
end DeltaOnModificationOfIntPackedMap;

View File

@@ -13,12 +13,15 @@
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#include <TDataStd_DeltaOnModificationOfIntPackedMap.ixx>
#include <TDF_DeltaOnModification.hxx>
#include <TDF_Label.hxx>
#include <TColStd_PackedMapOfInteger.hxx>
#include <Standard_Type.hxx>
#include <TColStd_HPackedMapOfInteger.hxx>
#include <TColStd_MapIteratorOfPackedMapOfInteger.hxx>
#include <TColStd_PackedMapOfInteger.hxx>
#include <TDataStd_DeltaOnModificationOfIntPackedMap.hxx>
#include <TDataStd_IntPackedMap.hxx>
#include <TDF_DeltaOnModification.hxx>
#include <TDF_Label.hxx>
#ifdef OCCT_DEBUG
#define MAXUP 1000

View File

@@ -0,0 +1,69 @@
// Created on: 2008-01-23
// Created by: Sergey ZARITCHNY
// Copyright (c) 2008-2014 OPEN CASCADE SAS
//
// 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 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.
//
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#ifndef _TDataStd_DeltaOnModificationOfIntPackedMap_HeaderFile
#define _TDataStd_DeltaOnModificationOfIntPackedMap_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <TDF_DeltaOnModification.hxx>
class TColStd_HPackedMapOfInteger;
class TDataStd_IntPackedMap;
class TDataStd_DeltaOnModificationOfIntPackedMap;
DEFINE_STANDARD_HANDLE(TDataStd_DeltaOnModificationOfIntPackedMap, TDF_DeltaOnModification)
//! This class provides default services for an
//! AttributeDelta on a MODIFICATION action.
class TDataStd_DeltaOnModificationOfIntPackedMap : public TDF_DeltaOnModification
{
public:
//! Initializes a TDF_DeltaOnModification.
Standard_EXPORT TDataStd_DeltaOnModificationOfIntPackedMap(const Handle(TDataStd_IntPackedMap)& Arr);
//! Applies the delta to the attribute.
Standard_EXPORT virtual void Apply() Standard_OVERRIDE;
DEFINE_STANDARD_RTTI(TDataStd_DeltaOnModificationOfIntPackedMap,TDF_DeltaOnModification)
protected:
private:
Handle(TColStd_HPackedMapOfInteger) myAddition;
Handle(TColStd_HPackedMapOfInteger) myDeletion;
};
#endif // _TDataStd_DeltaOnModificationOfIntPackedMap_HeaderFile

View File

@@ -1,44 +0,0 @@
-- Created on: 2007-10-30
-- Created by: Sergey ZARITCHNY
-- Copyright (c) 2007-2014 OPEN CASCADE SAS
--
-- 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 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.
--
-- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement.
class DeltaOnModificationOfRealArray from TDataStd inherits DeltaOnModification from TDF
---Purpose: This class provides default services for an
-- AttributeDelta on a MODIFICATION action
uses
Attribute from TDF,
HArray1OfReal from TColStd,
HArray1OfInteger from TColStd,
RealArray from TDataStd
is
Create (Arr : RealArray from TDataStd)
returns DeltaOnModificationOfRealArray from TDataStd;
---Purpose: Initializes a TDF_DeltaOnModification.
Apply (me : mutable)
is redefined virtual;
---Purpose: Applies the delta to the attribute.
fields
myIndxes : HArray1OfInteger from TColStd;
myValues : HArray1OfReal from TColStd;
myUp1 : Integer from Standard;
myUp2 : Integer from Standard;
end DeltaOnModificationOfRealArray;

View File

@@ -13,14 +13,17 @@
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#include <TDataStd_DeltaOnModificationOfRealArray.ixx>
#include <Standard_Type.hxx>
#include <TColStd_HArray1OfReal.hxx>
#include <TColStd_ListIteratorOfListOfInteger.hxx>
#include <TColStd_ListOfInteger.hxx>
#include <TDataStd_DeltaOnModificationOfRealArray.hxx>
#include <TDataStd_RealArray.hxx>
#include <TDF_AttributeIterator.hxx>
#include <TDF_DeltaOnModification.hxx>
#include <TDF_Label.hxx>
#include <TColStd_HArray1OfReal.hxx>
#include <TColStd_ListOfInteger.hxx>
#include <TColStd_ListIteratorOfListOfInteger.hxx>
#include <TDF_AttributeIterator.hxx>
#ifdef OCCT_DEBUG
#define MAXUP 1000
#endif

View File

@@ -0,0 +1,73 @@
// Created on: 2007-10-30
// Created by: Sergey ZARITCHNY
// Copyright (c) 2007-2014 OPEN CASCADE SAS
//
// 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 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.
//
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#ifndef _TDataStd_DeltaOnModificationOfRealArray_HeaderFile
#define _TDataStd_DeltaOnModificationOfRealArray_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <TColStd_HArray1OfInteger.hxx>
#include <TColStd_HArray1OfReal.hxx>
#include <Standard_Integer.hxx>
#include <TDF_DeltaOnModification.hxx>
class TDataStd_RealArray;
class TDataStd_DeltaOnModificationOfRealArray;
DEFINE_STANDARD_HANDLE(TDataStd_DeltaOnModificationOfRealArray, TDF_DeltaOnModification)
//! This class provides default services for an
//! AttributeDelta on a MODIFICATION action
class TDataStd_DeltaOnModificationOfRealArray : public TDF_DeltaOnModification
{
public:
//! Initializes a TDF_DeltaOnModification.
Standard_EXPORT TDataStd_DeltaOnModificationOfRealArray(const Handle(TDataStd_RealArray)& Arr);
//! Applies the delta to the attribute.
Standard_EXPORT virtual void Apply() Standard_OVERRIDE;
DEFINE_STANDARD_RTTI(TDataStd_DeltaOnModificationOfRealArray,TDF_DeltaOnModification)
protected:
private:
Handle(TColStd_HArray1OfInteger) myIndxes;
Handle(TColStd_HArray1OfReal) myValues;
Standard_Integer myUp1;
Standard_Integer myUp2;
};
#endif // _TDataStd_DeltaOnModificationOfRealArray_HeaderFile

View File

@@ -1,93 +0,0 @@
-- Created on: 1999-06-25
-- Created by: Sergey RUIN
-- Copyright (c) 1999 Matra Datavision
-- Copyright (c) 1999-2014 OPEN CASCADE SAS
--
-- 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 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.
--
-- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement.
class Directory from TDataStd inherits Attribute from TDF
---Purpose: Associates a directory in the data framework with
-- a TDataStd_TagSource attribute.
-- You can create a new directory label and add
-- sub-directory or object labels to it,
uses Attribute from TDF,
Label from TDF,
GUID from Standard,
DataSet from TDF,
RelocationTable from TDF
is
---Purpose: class methods
-- =============
Find (myclass; current : Label from TDF; D : in out Directory from TDataStd)
---Purpose: Searches for a directory attribute on the label
-- current, or on one of the father labels of current.
-- If a directory attribute is found, true is returned,
-- and the attribute found is set as D.
returns Boolean from Standard;
New (myclass; label : Label from TDF)
---Purpose: Creates an enpty Directory attribute, located at
-- <label>. Raises if <label> has attribute
returns Directory from TDataStd;
AddDirectory (myclass; dir : Directory from TDataStd)
---Purpose: Creates a new sub-label and sets the
-- sub-directory dir on that label.
returns Directory from TDataStd;
MakeObjectLabel (myclass; dir : Directory from TDataStd)
---Purpose: Makes new label and returns it to insert
-- other object attributes (sketch,part...etc...)
returns Label from TDF;
GetID (myclass)
---C++: return const &
returns GUID from Standard;
---Purpose: Directory methods
-- ===============
Create
returns Directory from TDataStd;
---Category: methodes de TDF_Attribute
-- =========================
ID (me)
---C++: return const &
returns GUID from Standard;
Restore (me: mutable; with : Attribute from TDF);
NewEmpty (me)
returns Attribute from TDF;
Paste (me; into : Attribute from TDF;
RT : RelocationTable from TDF);
References (me; DS : DataSet from TDF) is redefined;
Dump(me; anOS : in out OStream from Standard)
returns OStream from Standard
is redefined;
---C++: return &
end Directory;

View File

@@ -14,16 +14,22 @@
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#include <TDataStd_Directory.ixx>
#include <TDataStd.hxx>
#include <TDF_TagSource.hxx>
#include <Standard_DomainError.hxx>
#include <Standard_GUID.hxx>
#include <Standard_Type.hxx>
#include <TDataStd.hxx>
#include <TDataStd_Directory.hxx>
#include <TDF_Attribute.hxx>
#include <TDF_DataSet.hxx>
#include <TDF_Label.hxx>
#include <TDF_RelocationTable.hxx>
#include <TDF_TagSource.hxx>
//=======================================================================
//function : Find
//purpose :
//=======================================================================
Standard_Boolean TDataStd_Directory::Find (const TDF_Label& current,
Handle(TDataStd_Directory)& D)
{

View File

@@ -0,0 +1,107 @@
// Created on: 1999-06-25
// Created by: Sergey RUIN
// Copyright (c) 1999 Matra Datavision
// Copyright (c) 1999-2014 OPEN CASCADE SAS
//
// 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 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.
//
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#ifndef _TDataStd_Directory_HeaderFile
#define _TDataStd_Directory_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <TDF_Attribute.hxx>
#include <Standard_Boolean.hxx>
#include <Standard_OStream.hxx>
class TDF_Label;
class Standard_GUID;
class TDF_Attribute;
class TDF_RelocationTable;
class TDF_DataSet;
class TDataStd_Directory;
DEFINE_STANDARD_HANDLE(TDataStd_Directory, TDF_Attribute)
//! Associates a directory in the data framework with
//! a TDataStd_TagSource attribute.
//! You can create a new directory label and add
//! sub-directory or object labels to it,
class TDataStd_Directory : public TDF_Attribute
{
public:
//! class methods
//! =============
//! Searches for a directory attribute on the label
//! current, or on one of the father labels of current.
//! If a directory attribute is found, true is returned,
//! and the attribute found is set as D.
Standard_EXPORT static Standard_Boolean Find (const TDF_Label& current, Handle(TDataStd_Directory)& D);
//! Creates an enpty Directory attribute, located at
//! <label>. Raises if <label> has attribute
Standard_EXPORT static Handle(TDataStd_Directory) New (const TDF_Label& label);
//! Creates a new sub-label and sets the
//! sub-directory dir on that label.
Standard_EXPORT static Handle(TDataStd_Directory) AddDirectory (const Handle(TDataStd_Directory)& dir);
//! Makes new label and returns it to insert
//! other object attributes (sketch,part...etc...)
Standard_EXPORT static TDF_Label MakeObjectLabel (const Handle(TDataStd_Directory)& dir);
//! Directory methods
//! ===============
Standard_EXPORT static const Standard_GUID& GetID();
Standard_EXPORT TDataStd_Directory();
Standard_EXPORT const Standard_GUID& ID() const;
Standard_EXPORT void Restore (const Handle(TDF_Attribute)& with);
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const;
Standard_EXPORT void Paste (const Handle(TDF_Attribute)& into, const Handle(TDF_RelocationTable)& RT) const;
Standard_EXPORT virtual void References (const Handle(TDF_DataSet)& DS) const Standard_OVERRIDE;
Standard_EXPORT virtual Standard_OStream& Dump (Standard_OStream& anOS) const Standard_OVERRIDE;
DEFINE_STANDARD_RTTI(TDataStd_Directory,TDF_Attribute)
protected:
private:
};
#endif // _TDataStd_Directory_HeaderFile

View File

@@ -1,98 +0,0 @@
-- Created on: 1997-12-16
-- Created by: Denis PASCAL
-- Copyright (c) 1997-1999 Matra Datavision
-- Copyright (c) 1999-2014 OPEN CASCADE SAS
--
-- 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 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.
--
-- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement.
class Expression from TDataStd inherits Attribute from TDF
---Purpose: Expression attribute.
-- ====================
--
-- * Data Structure of the Expression is stored in a
-- string and references to variables used by the string
--
-- Warning: To be consistent, each Variable referenced by the
-- expression must have its equivalent in the string
uses Attribute from TDF,
Label from TDF,
GUID from Standard,
Real from Standard,
DataSet from TDF,
RelocationTable from TDF,
ExtendedString from TCollection,
AttributeList from TDF
is
---Purpose: class methods
-- =============
GetID (myclass)
---C++: return const &
returns GUID from Standard;
Set (myclass ; label : Label from TDF)
---Purpose: Find, or create, an Expression attribute.
returns Expression from TDataStd;
---Purpose: Expressionmethods
-- ============
Create
returns Expression from TDataStd;
Name (me)
---Purpose: build and return the expression name
returns ExtendedString from TCollection;
SetExpression (me : mutable; E : ExtendedString from TCollection);
GetExpression (me)
returns ExtendedString from TCollection;
---C++: return const &
GetVariables (me : mutable)
---C++: return &
returns AttributeList from TDF;
---Category: TDF_Attribute methods
-- =====================
ID (me)
---C++: return const &
returns GUID from Standard;
Restore (me: mutable; With : Attribute from TDF);
NewEmpty(me)
returns Attribute from TDF;
Paste (me; Into : Attribute from TDF;
RT : RelocationTable from TDF);
Dump(me; anOS : in out OStream from Standard)
returns OStream from Standard
is redefined;
---C++: return &
fields
myExpression : ExtendedString from TCollection;
myVariables : AttributeList from TDF;
end Expression;

View File

@@ -14,16 +14,22 @@
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#include <TDataStd_Expression.ixx>
#include <Standard_GUID.hxx>
#include <Standard_Type.hxx>
#include <TCollection_AsciiString.hxx>
#include <TCollection_ExtendedString.hxx>
#include <TDataStd_Expression.hxx>
#include <TDataStd_Variable.hxx>
#include <TDF_Attribute.hxx>
#include <TDF_Label.hxx>
#include <TDF_ListIteratorOfAttributeList.hxx>
#include <TDF_RelocationTable.hxx>
//=======================================================================
//function : GetID
//purpose :
//=======================================================================
const Standard_GUID& TDataStd_Expression::GetID()
{
static Standard_GUID TDataStd_ExpressionID("ce24146a-8e57-11d1-8953-080009dc4425");

View File

@@ -0,0 +1,106 @@
// Created on: 1997-12-16
// Created by: Denis PASCAL
// Copyright (c) 1997-1999 Matra Datavision
// Copyright (c) 1999-2014 OPEN CASCADE SAS
//
// 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 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.
//
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#ifndef _TDataStd_Expression_HeaderFile
#define _TDataStd_Expression_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <TCollection_ExtendedString.hxx>
#include <TDF_AttributeList.hxx>
#include <TDF_Attribute.hxx>
#include <Standard_OStream.hxx>
class Standard_GUID;
class TDF_Label;
class TCollection_ExtendedString;
class TDF_Attribute;
class TDF_RelocationTable;
class TDataStd_Expression;
DEFINE_STANDARD_HANDLE(TDataStd_Expression, TDF_Attribute)
//! Expression attribute.
//! ====================
//!
//! * Data Structure of the Expression is stored in a
//! string and references to variables used by the string
//!
//! Warning: To be consistent, each Variable referenced by the
//! expression must have its equivalent in the string
class TDataStd_Expression : public TDF_Attribute
{
public:
//! class methods
//! =============
Standard_EXPORT static const Standard_GUID& GetID();
//! Find, or create, an Expression attribute.
//! Expressionmethods
//! ============
Standard_EXPORT static Handle(TDataStd_Expression) Set (const TDF_Label& label);
Standard_EXPORT TDataStd_Expression();
//! build and return the expression name
Standard_EXPORT TCollection_ExtendedString Name() const;
Standard_EXPORT void SetExpression (const TCollection_ExtendedString& E);
Standard_EXPORT const TCollection_ExtendedString& GetExpression() const;
Standard_EXPORT TDF_AttributeList& GetVariables();
Standard_EXPORT const Standard_GUID& ID() const;
Standard_EXPORT void Restore (const Handle(TDF_Attribute)& With);
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const;
Standard_EXPORT void Paste (const Handle(TDF_Attribute)& Into, const Handle(TDF_RelocationTable)& RT) const;
Standard_EXPORT virtual Standard_OStream& Dump (Standard_OStream& anOS) const Standard_OVERRIDE;
DEFINE_STANDARD_RTTI(TDataStd_Expression,TDF_Attribute)
protected:
private:
TCollection_ExtendedString myExpression;
TDF_AttributeList myVariables;
};
#endif // _TDataStd_Expression_HeaderFile

View File

@@ -1,138 +0,0 @@
-- Created on: 2002-01-16
-- Created by: Michael PONIKAROV
-- Copyright (c) 2002-2014 OPEN CASCADE SAS
--
-- 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 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.
--
-- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement.
class ExtStringArray from TDataStd inherits Attribute from TDF
---Purpose: ExtStringArray Attribute. Handles an
-- array of UNICODE strings (represented by the
-- TCollection_ExtendedString class).
uses GUID from Standard,
ExtendedString from TCollection,
HArray1OfExtendedString from TColStd,
Attribute from TDF,
Label from TDF,
DeltaOnModification from TDF,
RelocationTable from TDF
is
---Purpose: class methods
-- =============
GetID (myclass)
---C++: return const &
---Purpose: Returns the GUID for the attribute.
returns GUID from Standard;
Set (myclass; label : Label from TDF; lower, upper : Integer from Standard;
isDelta : Boolean from Standard = Standard_False)
---Purpose: Finds, or creates, an ExtStringArray attribute with <lower>
-- and <upper> bounds on the specified label.
-- If <isDelta> == False, DefaultDeltaOnModification is used.
-- If <isDelta> == True, DeltaOnModification of the current attribute is used.
-- If attribute is already set, all input parameters are refused and the found
-- attribute is returned.
returns ExtStringArray from TDataStd;
---Category: ExtStringArray methods
-- ===============
Init(me : mutable; lower, upper : Integer from Standard);
---Purpose: Initializes the inner array with bounds from <lower> to <upper>
SetValue (me : mutable; Index : Integer from Standard; Value : ExtendedString from TCollection);
---Purpose: Sets the <Index>th element of the array to <Value>
-- OutOfRange exception is raised if <Index> doesn't respect Lower and Upper bounds of the internal array.
Value (me; Index : Integer from Standard)
---Purpose: Returns the value of the <Index>th element of the array
--
---C++: return const &
---C++: alias operator ()
returns ExtendedString from TCollection;
Lower (me) returns Integer from Standard;
---Purpose: Return the lower bound.
Upper (me) returns Integer from Standard;
---Purpose: Return the upper bound
Length (me) returns Integer from Standard;
---Purpose: Return the number of elements of <me>.
ChangeArray(me : mutable; newArray : HArray1OfExtendedString from TColStd;
isCheckItems : Boolean = Standard_True);
---Purpose: Sets the inner array <myValue> of the ExtStringArray attribute to <newArray>.
-- If value of <newArray> differs from <myValue>, Backup performed and myValue
-- refers to new instance of HArray1OfExtendedString that holds <newArray> values
-- If <isCheckItems> equal True each item of <newArray> will be checked with each
-- item of <myValue> for coincidence (to avoid backup).
Array(me) returns HArray1OfExtendedString from TColStd;
---Purpose: Return the inner array of the ExtStringArray attribute
---C++: inline
---C++: return const
GetDelta(me) returns Boolean from Standard;
---C++: inline
SetDelta(me : mutable; isDelta : Boolean from Standard);
---C++: inline
---Purpose: for internal use only!
RemoveArray(me : mutable) is private;
---C++: inline
---Category: methodes of TDF_Attribute
-- =========================
Create returns ExtStringArray from TDataStd;
ID (me)
---C++: return const &
returns GUID from Standard;
Restore (me: mutable; With : Attribute from TDF);
NewEmpty (me)
returns Attribute from TDF;
Paste (me; Into : Attribute from TDF;
RT : RelocationTable from TDF);
Dump(me; anOS : in out OStream from Standard)
returns OStream from Standard
is redefined;
---C++: return &
---Category: methods to be added for using in DeltaOn Modification
-- =====================================================
DeltaOnModification(me; anOldAttribute : Attribute from TDF)
returns DeltaOnModification from TDF
---Purpose : Makes a DeltaOnModification between <me> and
-- <anOldAttribute>.
is redefined virtual;
fields
myValue : HArray1OfExtendedString from TColStd;
myIsDelta : Boolean from Standard;
friends
class DeltaOnModificationOfExtStringArray from TDataStd
end ExtStringArray;

View File

@@ -13,15 +13,22 @@
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#include <TDataStd_ExtStringArray.ixx>
#include <Standard_GUID.hxx>
#include <Standard_Type.hxx>
#include <TCollection_ExtendedString.hxx>
#include <TDataStd_DeltaOnModificationOfExtStringArray.hxx>
#include <TDataStd_ExtStringArray.hxx>
#include <TDF_Attribute.hxx>
#include <TDF_DefaultDeltaOnModification.hxx>
#include <TDF_DeltaOnModification.hxx>
#include <TDF_Label.hxx>
#include <TDF_RelocationTable.hxx>
//=======================================================================
//function : GetID
//purpose :
//=======================================================================
const Standard_GUID& TDataStd_ExtStringArray::GetID()
{
static Standard_GUID anExtStringArrayID ("2a96b624-ec8b-11d0-bee7-080009dc3333");

View File

@@ -0,0 +1,144 @@
// Created on: 2002-01-16
// Created by: Michael PONIKAROV
// Copyright (c) 2002-2014 OPEN CASCADE SAS
//
// 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 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.
//
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#ifndef _TDataStd_ExtStringArray_HeaderFile
#define _TDataStd_ExtStringArray_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <TColStd_HArray1OfExtendedString.hxx>
#include <Standard_Boolean.hxx>
#include <TDF_Attribute.hxx>
#include <Standard_Integer.hxx>
#include <Standard_OStream.hxx>
class TDataStd_DeltaOnModificationOfExtStringArray;
class Standard_GUID;
class TDF_Label;
class TCollection_ExtendedString;
class TDF_Attribute;
class TDF_RelocationTable;
class TDF_DeltaOnModification;
class TDataStd_ExtStringArray;
DEFINE_STANDARD_HANDLE(TDataStd_ExtStringArray, TDF_Attribute)
//! ExtStringArray Attribute. Handles an
//! array of UNICODE strings (represented by the
//! TCollection_ExtendedString class).
class TDataStd_ExtStringArray : public TDF_Attribute
{
public:
//! class methods
//! =============
//! Returns the GUID for the attribute.
Standard_EXPORT static const Standard_GUID& GetID();
//! Finds, or creates, an ExtStringArray attribute with <lower>
//! and <upper> bounds on the specified label.
//! If <isDelta> == False, DefaultDeltaOnModification is used.
//! If <isDelta> == True, DeltaOnModification of the current attribute is used.
//! If attribute is already set, all input parameters are refused and the found
//! attribute is returned.
Standard_EXPORT static Handle(TDataStd_ExtStringArray) Set (const TDF_Label& label, const Standard_Integer lower, const Standard_Integer upper, const Standard_Boolean isDelta = Standard_False);
//! Initializes the inner array with bounds from <lower> to <upper>
Standard_EXPORT void Init (const Standard_Integer lower, const Standard_Integer upper);
//! Sets the <Index>th element of the array to <Value>
//! OutOfRange exception is raised if <Index> doesn't respect Lower and Upper bounds of the internal array.
Standard_EXPORT void SetValue (const Standard_Integer Index, const TCollection_ExtendedString& Value);
//! Returns the value of the <Index>th element of the array
Standard_EXPORT const TCollection_ExtendedString& Value (const Standard_Integer Index) const;
const TCollection_ExtendedString& operator () (const Standard_Integer Index) const
{
return Value(Index);
}
//! Return the lower bound.
Standard_EXPORT Standard_Integer Lower() const;
//! Return the upper bound
Standard_EXPORT Standard_Integer Upper() const;
//! Return the number of elements of <me>.
Standard_EXPORT Standard_Integer Length() const;
//! Sets the inner array <myValue> of the ExtStringArray attribute to <newArray>.
//! If value of <newArray> differs from <myValue>, Backup performed and myValue
//! refers to new instance of HArray1OfExtendedString that holds <newArray> values
//! If <isCheckItems> equal True each item of <newArray> will be checked with each
//! item of <myValue> for coincidence (to avoid backup).
Standard_EXPORT void ChangeArray (const Handle(TColStd_HArray1OfExtendedString)& newArray, const Standard_Boolean isCheckItems = Standard_True);
//! Return the inner array of the ExtStringArray attribute
const Handle(TColStd_HArray1OfExtendedString) Array() const;
Standard_Boolean GetDelta() const;
//! for internal use only!
void SetDelta (const Standard_Boolean isDelta);
Standard_EXPORT TDataStd_ExtStringArray();
Standard_EXPORT const Standard_GUID& ID() const;
Standard_EXPORT void Restore (const Handle(TDF_Attribute)& With);
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const;
Standard_EXPORT void Paste (const Handle(TDF_Attribute)& Into, const Handle(TDF_RelocationTable)& RT) const;
Standard_EXPORT virtual Standard_OStream& Dump (Standard_OStream& anOS) const Standard_OVERRIDE;
//! Makes a DeltaOnModification between <me> and
//! <anOldAttribute>.
Standard_EXPORT virtual Handle(TDF_DeltaOnModification) DeltaOnModification (const Handle(TDF_Attribute)& anOldAttribute) const Standard_OVERRIDE;
friend class TDataStd_DeltaOnModificationOfExtStringArray;
DEFINE_STANDARD_RTTI(TDataStd_ExtStringArray,TDF_Attribute)
protected:
private:
void RemoveArray();
Handle(TColStd_HArray1OfExtendedString) myValue;
Standard_Boolean myIsDelta;
};
#include <TDataStd_ExtStringArray.lxx>
#endif // _TDataStd_ExtStringArray_HeaderFile

View File

@@ -1,120 +0,0 @@
-- Created on: 2007-05-29
-- Created by: Vlad Romashko
-- Copyright (c) 2007-2014 OPEN CASCADE SAS
--
-- 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 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.
--
-- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement.
class ExtStringList from TDataStd inherits Attribute from TDF
---Purpose: Contains a list of ExtendedString.
uses
Attribute from TDF,
GUID from Standard,
Label from TDF,
RelocationTable from TDF,
ExtendedString from TCollection,
ListOfExtendedString from TDataStd
is
---Purpose: Static methods
-- ==============
GetID (myclass)
---C++: return const &
---Purpose: Returns the ID of the list of strings attribute.
returns GUID from Standard;
Set (myclass; label : Label from TDF)
---Purpose: Finds or creates a list of string values attribute.
returns ExtStringList from TDataStd;
---Category: ExtStringList methods
-- =====================
Create
returns ExtStringList from TDataStd;
IsEmpty (me)
returns Boolean from Standard;
Extent (me)
returns Integer from Standard;
Prepend (me : mutable;
value : ExtendedString from TCollection);
Append (me : mutable;
value : ExtendedString from TCollection);
InsertBefore (me : mutable;
value : ExtendedString from TCollection;
before_value : ExtendedString from TCollection)
---Purpose: Inserts the <value> before the first meet of <before_value>.
returns Boolean from Standard;
InsertAfter (me : mutable;
value : ExtendedString from TCollection;
after_value : ExtendedString from TCollection)
---Purpose: Inserts the <value> after the first meet of <after_value>.
returns Boolean from Standard;
Remove (me : mutable;
value : ExtendedString from TCollection)
---Purpose: Removes the first meet of the <value>.
returns Boolean from Standard;
Clear (me : mutable);
First (me)
---C++: return const &
returns ExtendedString from TCollection;
Last (me)
---C++: return const &
returns ExtendedString from TCollection;
List (me)
---C++: return const &
returns ListOfExtendedString from TDataStd;
---Category: Methodes of TDF_Attribute
-- =========================
ID (me)
---C++: return const &
returns GUID from Standard;
Restore (me: mutable; With : Attribute from TDF);
NewEmpty (me)
returns Attribute from TDF;
Paste (me; Into : Attribute from TDF;
RT : RelocationTable from TDF);
Dump(me; anOS : in out OStream from Standard)
returns OStream from Standard
is redefined;
---C++: return &
fields
myList : ListOfExtendedString from TDataStd;
end ExtStringList;

View File

@@ -13,8 +13,15 @@
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#include <TDataStd_ExtStringList.ixx>
#include <Standard_GUID.hxx>
#include <Standard_Type.hxx>
#include <TCollection_ExtendedString.hxx>
#include <TDataStd_ExtStringList.hxx>
#include <TDataStd_ListIteratorOfListOfExtendedString.hxx>
#include <TDF_Attribute.hxx>
#include <TDF_Label.hxx>
#include <TDF_RelocationTable.hxx>
//=======================================================================
//function : GetID

View File

@@ -0,0 +1,113 @@
// Created on: 2007-05-29
// Created by: Vlad Romashko
// Copyright (c) 2007-2014 OPEN CASCADE SAS
//
// 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 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.
//
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#ifndef _TDataStd_ExtStringList_HeaderFile
#define _TDataStd_ExtStringList_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <TDataStd_ListOfExtendedString.hxx>
#include <TDF_Attribute.hxx>
#include <Standard_Boolean.hxx>
#include <Standard_Integer.hxx>
#include <Standard_OStream.hxx>
class Standard_GUID;
class TDF_Label;
class TCollection_ExtendedString;
class TDF_Attribute;
class TDF_RelocationTable;
class TDataStd_ExtStringList;
DEFINE_STANDARD_HANDLE(TDataStd_ExtStringList, TDF_Attribute)
//! Contains a list of ExtendedString.
class TDataStd_ExtStringList : public TDF_Attribute
{
public:
//! Static methods
//! ==============
//! Returns the ID of the list of strings attribute.
Standard_EXPORT static const Standard_GUID& GetID();
//! Finds or creates a list of string values attribute.
Standard_EXPORT static Handle(TDataStd_ExtStringList) Set (const TDF_Label& label);
Standard_EXPORT TDataStd_ExtStringList();
Standard_EXPORT Standard_Boolean IsEmpty() const;
Standard_EXPORT Standard_Integer Extent() const;
Standard_EXPORT void Prepend (const TCollection_ExtendedString& value);
Standard_EXPORT void Append (const TCollection_ExtendedString& value);
//! Inserts the <value> before the first meet of <before_value>.
Standard_EXPORT Standard_Boolean InsertBefore (const TCollection_ExtendedString& value, const TCollection_ExtendedString& before_value);
//! Inserts the <value> after the first meet of <after_value>.
Standard_EXPORT Standard_Boolean InsertAfter (const TCollection_ExtendedString& value, const TCollection_ExtendedString& after_value);
//! Removes the first meet of the <value>.
Standard_EXPORT Standard_Boolean Remove (const TCollection_ExtendedString& value);
Standard_EXPORT void Clear();
Standard_EXPORT const TCollection_ExtendedString& First() const;
Standard_EXPORT const TCollection_ExtendedString& Last() const;
Standard_EXPORT const TDataStd_ListOfExtendedString& List() const;
Standard_EXPORT const Standard_GUID& ID() const;
Standard_EXPORT void Restore (const Handle(TDF_Attribute)& With);
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const;
Standard_EXPORT void Paste (const Handle(TDF_Attribute)& Into, const Handle(TDF_RelocationTable)& RT) const;
Standard_EXPORT virtual Standard_OStream& Dump (Standard_OStream& anOS) const Standard_OVERRIDE;
DEFINE_STANDARD_RTTI(TDataStd_ExtStringList,TDF_Attribute)
protected:
private:
TDataStd_ListOfExtendedString myList;
};
#endif // _TDataStd_ExtStringList_HeaderFile

View File

@@ -1,45 +0,0 @@
-- Created on: 2007-08-17
-- Created by: Sergey ZARITCHNY
-- Copyright (c) 2007-2014 OPEN CASCADE SAS
--
-- 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 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.
--
-- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement.
class HDataMapOfStringByte from TDataStd inherits TShared from MMgt
---Purpose: Extension of TDataStd_DataMapOfStringByte class
-- to be manipulated by handle.
uses
DataMapOfStringByte from TDataStd
is
Create( NbBuckets: Integer from Standard = 1 )
returns HDataMapOfStringByte from TDataStd;
Create( theOther: DataMapOfStringByte from TDataStd)
returns HDataMapOfStringByte from TDataStd;
Map( me ) returns DataMapOfStringByte from TDataStd
---C++: return const &
---C++: inline
is static;
ChangeMap( me: mutable ) returns DataMapOfStringByte from TDataStd
---C++: return &
---C++: inline
is static;
fields
myMap : DataMapOfStringByte from TDataStd ;
end HDataMapOfStringByte;

View File

@@ -13,7 +13,9 @@
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#include <TDataStd_HDataMapOfStringByte.ixx>
#include <Standard_Type.hxx>
#include <TDataStd_HDataMapOfStringByte.hxx>
//=======================================================================
//function : TDataStd_HDataMapOfStringByte

View File

@@ -0,0 +1,71 @@
// Created on: 2007-08-17
// Created by: Sergey ZARITCHNY
// Copyright (c) 2007-2014 OPEN CASCADE SAS
//
// 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 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.
//
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#ifndef _TDataStd_HDataMapOfStringByte_HeaderFile
#define _TDataStd_HDataMapOfStringByte_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <TDataStd_DataMapOfStringByte.hxx>
#include <MMgt_TShared.hxx>
#include <Standard_Integer.hxx>
class TDataStd_HDataMapOfStringByte;
DEFINE_STANDARD_HANDLE(TDataStd_HDataMapOfStringByte, MMgt_TShared)
//! Extension of TDataStd_DataMapOfStringByte class
//! to be manipulated by handle.
class TDataStd_HDataMapOfStringByte : public MMgt_TShared
{
public:
Standard_EXPORT TDataStd_HDataMapOfStringByte(const Standard_Integer NbBuckets = 1);
Standard_EXPORT TDataStd_HDataMapOfStringByte(const TDataStd_DataMapOfStringByte& theOther);
const TDataStd_DataMapOfStringByte& Map() const;
TDataStd_DataMapOfStringByte& ChangeMap();
DEFINE_STANDARD_RTTI(TDataStd_HDataMapOfStringByte,MMgt_TShared)
protected:
private:
TDataStd_DataMapOfStringByte myMap;
};
#include <TDataStd_HDataMapOfStringByte.lxx>
#endif // _TDataStd_HDataMapOfStringByte_HeaderFile

View File

@@ -1,45 +0,0 @@
-- Created on: 2007-08-17
-- Created by: Sergey ZARITCHNY
-- Copyright (c) 2007-2014 OPEN CASCADE SAS
--
-- 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 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.
--
-- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement.
class HDataMapOfStringHArray1OfInteger from TDataStd inherits TShared from MMgt
---Purpose: Extension of TDataStd_DataMapOfStringHArray1OfInteger class
-- to be manipulated by handle.
uses
DataMapOfStringHArray1OfInteger from TDataStd
is
Create( NbBuckets: Integer from Standard = 1 )
returns HDataMapOfStringHArray1OfInteger from TDataStd;
Create( theOther: DataMapOfStringHArray1OfInteger from TDataStd)
returns HDataMapOfStringHArray1OfInteger from TDataStd;
Map( me ) returns DataMapOfStringHArray1OfInteger from TDataStd
---C++: return const &
---C++: inline
is static;
ChangeMap( me: mutable ) returns DataMapOfStringHArray1OfInteger from TDataStd
---C++: return &
---C++: inline
is static;
fields
myMap : DataMapOfStringHArray1OfInteger from TDataStd ;
end HDataMapOfStringHArray1OfInteger;

View File

@@ -13,7 +13,9 @@
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#include <TDataStd_HDataMapOfStringHArray1OfInteger.ixx>
#include <Standard_Type.hxx>
#include <TDataStd_HDataMapOfStringHArray1OfInteger.hxx>
//=======================================================================
//function : TDataStd_HDataMapOfStringHArray1OfInteger

View File

@@ -0,0 +1,71 @@
// Created on: 2007-08-17
// Created by: Sergey ZARITCHNY
// Copyright (c) 2007-2014 OPEN CASCADE SAS
//
// 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 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.
//
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#ifndef _TDataStd_HDataMapOfStringHArray1OfInteger_HeaderFile
#define _TDataStd_HDataMapOfStringHArray1OfInteger_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <TDataStd_DataMapOfStringHArray1OfInteger.hxx>
#include <MMgt_TShared.hxx>
#include <Standard_Integer.hxx>
class TDataStd_HDataMapOfStringHArray1OfInteger;
DEFINE_STANDARD_HANDLE(TDataStd_HDataMapOfStringHArray1OfInteger, MMgt_TShared)
//! Extension of TDataStd_DataMapOfStringHArray1OfInteger class
//! to be manipulated by handle.
class TDataStd_HDataMapOfStringHArray1OfInteger : public MMgt_TShared
{
public:
Standard_EXPORT TDataStd_HDataMapOfStringHArray1OfInteger(const Standard_Integer NbBuckets = 1);
Standard_EXPORT TDataStd_HDataMapOfStringHArray1OfInteger(const TDataStd_DataMapOfStringHArray1OfInteger& theOther);
const TDataStd_DataMapOfStringHArray1OfInteger& Map() const;
TDataStd_DataMapOfStringHArray1OfInteger& ChangeMap();
DEFINE_STANDARD_RTTI(TDataStd_HDataMapOfStringHArray1OfInteger,MMgt_TShared)
protected:
private:
TDataStd_DataMapOfStringHArray1OfInteger myMap;
};
#include <TDataStd_HDataMapOfStringHArray1OfInteger.lxx>
#endif // _TDataStd_HDataMapOfStringHArray1OfInteger_HeaderFile

View File

@@ -1,45 +0,0 @@
-- Created on: 2007-08-17
-- Created by: Sergey ZARITCHNY
-- Copyright (c) 2007-2014 OPEN CASCADE SAS
--
-- 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 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.
--
-- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement.
class HDataMapOfStringHArray1OfReal from TDataStd inherits TShared from MMgt
---Purpose: Extension of TDataStd_DataMapOfStringHArray1OfReal class
-- to be manipulated by handle.
uses
DataMapOfStringHArray1OfReal from TDataStd
is
Create( NbBuckets: Integer from Standard = 1 )
returns HDataMapOfStringHArray1OfReal from TDataStd;
Create( theOther: DataMapOfStringHArray1OfReal from TDataStd)
returns HDataMapOfStringHArray1OfReal from TDataStd;
Map( me ) returns DataMapOfStringHArray1OfReal from TDataStd
---C++: return const &
---C++: inline
is static;
ChangeMap( me: mutable ) returns DataMapOfStringHArray1OfReal from TDataStd
---C++: return &
---C++: inline
is static;
fields
myMap : DataMapOfStringHArray1OfReal from TDataStd ;
end HDataMapOfStringHArray1OfReal;

View File

@@ -13,7 +13,9 @@
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#include <TDataStd_HDataMapOfStringHArray1OfReal.ixx>
#include <Standard_Type.hxx>
#include <TDataStd_HDataMapOfStringHArray1OfReal.hxx>
//=======================================================================
//function : TDataStd_HDataMapOfStringHArray1OfReal

View File

@@ -0,0 +1,71 @@
// Created on: 2007-08-17
// Created by: Sergey ZARITCHNY
// Copyright (c) 2007-2014 OPEN CASCADE SAS
//
// 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 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.
//
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#ifndef _TDataStd_HDataMapOfStringHArray1OfReal_HeaderFile
#define _TDataStd_HDataMapOfStringHArray1OfReal_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <TDataStd_DataMapOfStringHArray1OfReal.hxx>
#include <MMgt_TShared.hxx>
#include <Standard_Integer.hxx>
class TDataStd_HDataMapOfStringHArray1OfReal;
DEFINE_STANDARD_HANDLE(TDataStd_HDataMapOfStringHArray1OfReal, MMgt_TShared)
//! Extension of TDataStd_DataMapOfStringHArray1OfReal class
//! to be manipulated by handle.
class TDataStd_HDataMapOfStringHArray1OfReal : public MMgt_TShared
{
public:
Standard_EXPORT TDataStd_HDataMapOfStringHArray1OfReal(const Standard_Integer NbBuckets = 1);
Standard_EXPORT TDataStd_HDataMapOfStringHArray1OfReal(const TDataStd_DataMapOfStringHArray1OfReal& theOther);
const TDataStd_DataMapOfStringHArray1OfReal& Map() const;
TDataStd_DataMapOfStringHArray1OfReal& ChangeMap();
DEFINE_STANDARD_RTTI(TDataStd_HDataMapOfStringHArray1OfReal,MMgt_TShared)
protected:
private:
TDataStd_DataMapOfStringHArray1OfReal myMap;
};
#include <TDataStd_HDataMapOfStringHArray1OfReal.lxx>
#endif // _TDataStd_HDataMapOfStringHArray1OfReal_HeaderFile

View File

@@ -1,45 +0,0 @@
-- Created on: 2007-08-17
-- Created by: Sergey ZARITCHNY
-- Copyright (c) 2007-2014 OPEN CASCADE SAS
--
-- 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 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.
--
-- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement.
class HDataMapOfStringInteger from TDataStd inherits TShared from MMgt
---Purpose: Extension of TColStd_DataMapOfStringInteger class
-- to be manipulated by handle.
uses
DataMapOfStringInteger from TColStd
is
Create( NbBuckets: Integer from Standard = 1 )
returns HDataMapOfStringInteger from TDataStd;
Create( theOther: DataMapOfStringInteger from TColStd)
returns HDataMapOfStringInteger from TDataStd;
Map( me ) returns DataMapOfStringInteger from TColStd
---C++: return const &
---C++: inline
is static;
ChangeMap( me: mutable ) returns DataMapOfStringInteger from TColStd
---C++: return &
---C++: inline
is static;
fields
myMap : DataMapOfStringInteger from TColStd ;
end HDataMapOfStringInteger;

View File

@@ -13,7 +13,9 @@
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#include <TDataStd_HDataMapOfStringInteger.ixx>
#include <Standard_Type.hxx>
#include <TDataStd_HDataMapOfStringInteger.hxx>
//=======================================================================
//function : TDataStd_HDataMapOfStringInteger

View File

@@ -0,0 +1,71 @@
// Created on: 2007-08-17
// Created by: Sergey ZARITCHNY
// Copyright (c) 2007-2014 OPEN CASCADE SAS
//
// 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 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.
//
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#ifndef _TDataStd_HDataMapOfStringInteger_HeaderFile
#define _TDataStd_HDataMapOfStringInteger_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <TColStd_DataMapOfStringInteger.hxx>
#include <MMgt_TShared.hxx>
#include <Standard_Integer.hxx>
class TDataStd_HDataMapOfStringInteger;
DEFINE_STANDARD_HANDLE(TDataStd_HDataMapOfStringInteger, MMgt_TShared)
//! Extension of TColStd_DataMapOfStringInteger class
//! to be manipulated by handle.
class TDataStd_HDataMapOfStringInteger : public MMgt_TShared
{
public:
Standard_EXPORT TDataStd_HDataMapOfStringInteger(const Standard_Integer NbBuckets = 1);
Standard_EXPORT TDataStd_HDataMapOfStringInteger(const TColStd_DataMapOfStringInteger& theOther);
const TColStd_DataMapOfStringInteger& Map() const;
TColStd_DataMapOfStringInteger& ChangeMap();
DEFINE_STANDARD_RTTI(TDataStd_HDataMapOfStringInteger,MMgt_TShared)
protected:
private:
TColStd_DataMapOfStringInteger myMap;
};
#include <TDataStd_HDataMapOfStringInteger.lxx>
#endif // _TDataStd_HDataMapOfStringInteger_HeaderFile

View File

@@ -1,46 +0,0 @@
-- Created on: 2007-08-17
-- Created by: Sergey ZARITCHNY
-- Copyright (c) 2007-2014 OPEN CASCADE SAS
--
-- 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 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.
--
-- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement.
class HDataMapOfStringReal from TDataStd inherits TShared from MMgt
---Purpose:Extension of TDataStd_DataMapOfStringReal class
-- to be manipulated by handle.
uses
DataMapOfStringReal from TDataStd
is
Create( NbBuckets: Integer from Standard = 1 )
returns HDataMapOfStringReal from TDataStd;
Create( theOther: DataMapOfStringReal from TDataStd)
returns HDataMapOfStringReal from TDataStd;
Map( me ) returns DataMapOfStringReal from TDataStd
---C++: return const &
---C++: inline
is static;
ChangeMap( me: mutable ) returns DataMapOfStringReal from TDataStd
---C++: return &
---C++: inline
is static;
fields
myMap : DataMapOfStringReal from TDataStd ;
end HDataMapOfStringReal;

View File

@@ -13,7 +13,10 @@
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#include <TDataStd_HDataMapOfStringReal.ixx>
#include <Standard_Type.hxx>
#include <TDataStd_HDataMapOfStringReal.hxx>
//=======================================================================
//function : TDataStd_HDataMapOfStringReal
//purpose : Constructor of empty map

View File

@@ -0,0 +1,71 @@
// Created on: 2007-08-17
// Created by: Sergey ZARITCHNY
// Copyright (c) 2007-2014 OPEN CASCADE SAS
//
// 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 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.
//
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#ifndef _TDataStd_HDataMapOfStringReal_HeaderFile
#define _TDataStd_HDataMapOfStringReal_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <TDataStd_DataMapOfStringReal.hxx>
#include <MMgt_TShared.hxx>
#include <Standard_Integer.hxx>
class TDataStd_HDataMapOfStringReal;
DEFINE_STANDARD_HANDLE(TDataStd_HDataMapOfStringReal, MMgt_TShared)
//! Extension of TDataStd_DataMapOfStringReal class
//! to be manipulated by handle.
class TDataStd_HDataMapOfStringReal : public MMgt_TShared
{
public:
Standard_EXPORT TDataStd_HDataMapOfStringReal(const Standard_Integer NbBuckets = 1);
Standard_EXPORT TDataStd_HDataMapOfStringReal(const TDataStd_DataMapOfStringReal& theOther);
const TDataStd_DataMapOfStringReal& Map() const;
TDataStd_DataMapOfStringReal& ChangeMap();
DEFINE_STANDARD_RTTI(TDataStd_HDataMapOfStringReal,MMgt_TShared)
protected:
private:
TDataStd_DataMapOfStringReal myMap;
};
#include <TDataStd_HDataMapOfStringReal.lxx>
#endif // _TDataStd_HDataMapOfStringReal_HeaderFile

View File

@@ -1,46 +0,0 @@
-- Created on: 2007-08-17
-- Created by: Sergey ZARITCHNY
-- Copyright (c) 2007-2014 OPEN CASCADE SAS
--
-- 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 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.
--
-- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement.
class HDataMapOfStringString from TDataStd inherits TShared from MMgt
---Purpose: Extension of TDataStd_DataMapOfStringString class
-- to be manipulated by handle.
uses
DataMapOfStringString from TDataStd
is
Create( NbBuckets: Integer from Standard = 1 )
returns HDataMapOfStringString from TDataStd;
Create( theOther: DataMapOfStringString from TDataStd)
returns HDataMapOfStringString from TDataStd;
Map( me ) returns DataMapOfStringString from TDataStd
---C++: return const &
---C++: inline
is static;
ChangeMap( me: mutable ) returns DataMapOfStringString from TDataStd
---C++: return &
---C++: inline
is static;
fields
myMap : DataMapOfStringString from TDataStd ;
end HDataMapOfStringString;

View File

@@ -13,7 +13,9 @@
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#include <TDataStd_HDataMapOfStringString.ixx>
#include <Standard_Type.hxx>
#include <TDataStd_HDataMapOfStringString.hxx>
//=======================================================================
//function : TDataStd_HDataMapOfStringString

View File

@@ -0,0 +1,71 @@
// Created on: 2007-08-17
// Created by: Sergey ZARITCHNY
// Copyright (c) 2007-2014 OPEN CASCADE SAS
//
// 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 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.
//
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#ifndef _TDataStd_HDataMapOfStringString_HeaderFile
#define _TDataStd_HDataMapOfStringString_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <TDataStd_DataMapOfStringString.hxx>
#include <MMgt_TShared.hxx>
#include <Standard_Integer.hxx>
class TDataStd_HDataMapOfStringString;
DEFINE_STANDARD_HANDLE(TDataStd_HDataMapOfStringString, MMgt_TShared)
//! Extension of TDataStd_DataMapOfStringString class
//! to be manipulated by handle.
class TDataStd_HDataMapOfStringString : public MMgt_TShared
{
public:
Standard_EXPORT TDataStd_HDataMapOfStringString(const Standard_Integer NbBuckets = 1);
Standard_EXPORT TDataStd_HDataMapOfStringString(const TDataStd_DataMapOfStringString& theOther);
const TDataStd_DataMapOfStringString& Map() const;
TDataStd_DataMapOfStringString& ChangeMap();
DEFINE_STANDARD_RTTI(TDataStd_HDataMapOfStringString,MMgt_TShared)
protected:
private:
TDataStd_DataMapOfStringString myMap;
};
#include <TDataStd_HDataMapOfStringString.lxx>
#endif // _TDataStd_HDataMapOfStringString_HeaderFile

View File

@@ -1,151 +0,0 @@
-- Created on: 2007-07-31
-- Created by: Sergey ZARITCHNY
-- Copyright (c) 2007-2014 OPEN CASCADE SAS
--
-- 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 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.
--
-- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement.
class IntPackedMap from TDataStd inherits Attribute from TDF
---Purpose: Attribute for storing TColStd_PackedMapOfInteger
uses
Attribute from TDF,
Label from TDF,
GUID from Standard,
PackedMapOfInteger from TColStd,
HPackedMapOfInteger from TColStd,
DeltaOnModification from TDF,
RelocationTable from TDF
is
---Purpose: class methods
-- =============
GetID (myclass)
---C++: return const &
---Purpose: Returns the GUID of the attribute.
returns GUID from Standard;
Set (myclass; label : Label from TDF; isDelta : Boolean from Standard = Standard_False)
---Purpose: Finds or creates an integer map attribute on the given label.
-- If <isDelta> == False, DefaultDeltaOnModification is used.
-- If <isDelta> == True, DeltaOnModification of the current attribute is used.
-- If attribute is already set, input parameter <isDelta> is refused and the found
-- attribute returned.
returns IntPackedMap from TDataStd;
---Purpose: Attribute methods
-- ===================
Create
returns IntPackedMap from TDataStd;
-- Constructor
ChangeMap (me : mutable; theMap : HPackedMapOfInteger from TColStd)
-- Sets the inner map to theMap. If the content of theMap is the same as myMap,
-- it does nothing and return false. Else full backup is performed.
returns Boolean from Standard;
GetMap (me)
returns PackedMapOfInteger from TColStd;
---C++: inline
---C++: return const &
-- Access to the const interface of the map
GetHMap (me)
returns HPackedMapOfInteger from TColStd;
---C++: inline
---C++: return const &
-- Access to the handle of the map.
-- WARNING! do not use the handle returned by this method to modify the map,
-- otherwise undo/redo mechanism will be failed.
Clear(me : mutable)
returns Boolean from Standard;
-- Clears the inner map. Returns false if map is alredy empty.
Add(me : mutable; theKey : Integer from Standard)
returns Boolean from Standard;
-- Adds a new key to the map. Returns false if this key already exists.
Remove(me : mutable; theKey : Integer from Standard)
returns Boolean from Standard;
-- Removes the key from the map. Returns false if this key was not found.
Contains(me; theKey : Integer from Standard)
returns Boolean from Standard;
-- Returns true if the key contains in the map, false otherwise
Extent(me)
---C++: inline
returns Integer from Standard;
-- Returns the size of the map
IsEmpty(me)
---C++: inline
returns Boolean from Standard;
GetDelta(me) returns Boolean from Standard;
---C++: inline
SetDelta(me : mutable; isDelta : Boolean from Standard);
---C++: inline
---Purpose: for internal use only!
RemoveMap(me : mutable) is private;
---C++: inline
---Category: TDF_Attribute methods
-- =====================
ID (me)
---C++: return const &
returns GUID from Standard;
Restore (me: mutable; with : Attribute from TDF);
-- Restores the backuped content from <with> into this one.
NewEmpty (me)
returns Attribute from TDF;
-- Returns an new empty AsciiString attribute.
Paste (me; into : Attribute from TDF;
RT : RelocationTable from TDF);
-- This method is used when copying an attribute from a source structure
-- into a target structure.
Dump(me; anOS : in out OStream from Standard)
returns OStream from Standard
is redefined;
---C++: return &
-- This method dumps the attribute value into the stream
---Category: methods to be added for using in DeltaOn Modification
-- =====================================================
DeltaOnModification(me; anOldAttribute : Attribute from TDF)
returns DeltaOnModification from TDF
---Purpose : Makes a DeltaOnModification between <me> and
-- <anOldAttribute>.
is redefined virtual;
fields
myMap : HPackedMapOfInteger from TColStd;
myIsDelta : Boolean from Standard;
friends
class DeltaOnModificationOfIntPackedMap from TDataStd
end IntPackedMap;

View File

@@ -13,19 +13,23 @@
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#include <TDataStd_IntPackedMap.ixx>
#include <TColStd_PackedMapOfInteger.hxx>
#include <TColStd_HPackedMapOfInteger.hxx>
#include <TDF_DefaultDeltaOnModification.hxx>
#include <TDataStd_DeltaOnModificationOfIntPackedMap.hxx>
#include <Standard_GUID.hxx>
#include <TDF_Label.hxx>
#include <Standard_Type.hxx>
#include <TColStd_HPackedMapOfInteger.hxx>
#include <TColStd_PackedMapOfInteger.hxx>
#include <TDataStd_DeltaOnModificationOfIntPackedMap.hxx>
#include <TDataStd_IntPackedMap.hxx>
#include <TDF_Attribute.hxx>
#include <TDF_DefaultDeltaOnModification.hxx>
#include <TDF_DeltaOnModification.hxx>
#include <TDF_Label.hxx>
#include <TDF_RelocationTable.hxx>
//=======================================================================
//function : GetID
//purpose :
//=======================================================================
const Standard_GUID& TDataStd_IntPackedMap::GetID()
{
static Standard_GUID theGUID ("7031faff-161e-44df-8239-7c264a81f5a1");

View File

@@ -0,0 +1,128 @@
// Created on: 2007-07-31
// Created by: Sergey ZARITCHNY
// Copyright (c) 2007-2014 OPEN CASCADE SAS
//
// 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 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.
//
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#ifndef _TDataStd_IntPackedMap_HeaderFile
#define _TDataStd_IntPackedMap_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <Standard_Boolean.hxx>
#include <TDF_Attribute.hxx>
#include <TColStd_PackedMapOfInteger.hxx>
#include <Standard_Integer.hxx>
#include <Standard_OStream.hxx>
class TColStd_HPackedMapOfInteger;
class TDataStd_DeltaOnModificationOfIntPackedMap;
class Standard_GUID;
class TDF_Label;
class TDF_Attribute;
class TDF_RelocationTable;
class TDF_DeltaOnModification;
class TDataStd_IntPackedMap;
DEFINE_STANDARD_HANDLE(TDataStd_IntPackedMap, TDF_Attribute)
//! Attribute for storing TColStd_PackedMapOfInteger
class TDataStd_IntPackedMap : public TDF_Attribute
{
public:
//! class methods
//! =============
//! Returns the GUID of the attribute.
Standard_EXPORT static const Standard_GUID& GetID();
//! Finds or creates an integer map attribute on the given label.
//! If <isDelta> == False, DefaultDeltaOnModification is used.
//! If <isDelta> == True, DeltaOnModification of the current attribute is used.
//! If attribute is already set, input parameter <isDelta> is refused and the found
//! attribute returned.
//! Attribute methods
//! ===================
Standard_EXPORT static Handle(TDataStd_IntPackedMap) Set (const TDF_Label& label, const Standard_Boolean isDelta = Standard_False);
Standard_EXPORT TDataStd_IntPackedMap();
Standard_EXPORT Standard_Boolean ChangeMap (const Handle(TColStd_HPackedMapOfInteger)& theMap);
const TColStd_PackedMapOfInteger& GetMap() const;
const Handle(TColStd_HPackedMapOfInteger)& GetHMap() const;
Standard_EXPORT Standard_Boolean Clear();
Standard_EXPORT Standard_Boolean Add (const Standard_Integer theKey);
Standard_EXPORT Standard_Boolean Remove (const Standard_Integer theKey);
Standard_EXPORT Standard_Boolean Contains (const Standard_Integer theKey) const;
Standard_Integer Extent() const;
Standard_Boolean IsEmpty() const;
Standard_Boolean GetDelta() const;
//! for internal use only!
void SetDelta (const Standard_Boolean isDelta);
Standard_EXPORT const Standard_GUID& ID() const;
Standard_EXPORT void Restore (const Handle(TDF_Attribute)& with);
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const;
Standard_EXPORT void Paste (const Handle(TDF_Attribute)& into, const Handle(TDF_RelocationTable)& RT) const;
Standard_EXPORT virtual Standard_OStream& Dump (Standard_OStream& anOS) const Standard_OVERRIDE;
//! Makes a DeltaOnModification between <me> and
//! <anOldAttribute>.
Standard_EXPORT virtual Handle(TDF_DeltaOnModification) DeltaOnModification (const Handle(TDF_Attribute)& anOldAttribute) const Standard_OVERRIDE;
friend class TDataStd_DeltaOnModificationOfIntPackedMap;
DEFINE_STANDARD_RTTI(TDataStd_IntPackedMap,TDF_Attribute)
protected:
private:
void RemoveMap();
Handle(TColStd_HPackedMapOfInteger) myMap;
Standard_Boolean myIsDelta;
};
#include <TDataStd_IntPackedMap.lxx>
#endif // _TDataStd_IntPackedMap_HeaderFile

View File

@@ -1,82 +0,0 @@
-- Created on: 1997-02-06
-- Created by: Denis PASCAL
-- Copyright (c) 1997-1999 Matra Datavision
-- Copyright (c) 1999-2014 OPEN CASCADE SAS
--
-- 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 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.
--
-- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement.
class Integer from TDataStd inherits Attribute from TDF
---Purpose: The basis to define an integer attribute.
uses Attribute from TDF,
Label from TDF,
GUID from Standard,
Integer from Standard,
RelocationTable from TDF
is
---Purpose: class methods
-- =============
GetID (myclass)
---C++: return const &
---Purpose: Returns the GUID for integers.
returns GUID from Standard;
Set (myclass; label : Label from TDF; value : Integer from Standard)
---Purpose: Finds, or creates, an Integer attribute and sets <value>
-- the Integer attribute is returned.
returns Integer from TDataStd;
---Purpose: Integer methods
-- ===============
Set (me : mutable; V : Integer from Standard);
Get (me)
returns Integer from Standard;
---Purpose: Returns the integer value contained in the attribute.
IsCaptured(me) returns Boolean;
---Purpose: Returns True if there is a reference on the same label
---Category: methodes de TDF_Attribute
-- =========================
ID (me)
---C++: return const &
returns GUID from Standard;
Restore (me: mutable; With : Attribute from TDF);
NewEmpty (me)
returns Attribute from TDF;
Paste (me; Into : Attribute from TDF;
RT : RelocationTable from TDF);
Dump(me; anOS : in out OStream from Standard)
returns OStream from Standard
is redefined;
---C++: return &
Create
returns Integer from TDataStd;
fields
myValue : Integer from Standard;
end Integer;

View File

@@ -14,14 +14,19 @@
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#include <TDataStd_Integer.ixx>
#include <Standard_GUID.hxx>
#include <Standard_Type.hxx>
#include <TDataStd_Integer.hxx>
#include <TDF_Attribute.hxx>
#include <TDF_Label.hxx>
#include <TDF_Reference.hxx>
#include <TDF_RelocationTable.hxx>
//=======================================================================
//function : GetID
//purpose :
//=======================================================================
const Standard_GUID& TDataStd_Integer::GetID()
{
static Standard_GUID TDataStd_IntegerID ("2a96b606-ec8b-11d0-bee7-080009dc3333");

View File

@@ -0,0 +1,98 @@
// Created on: 1997-02-06
// Created by: Denis PASCAL
// Copyright (c) 1997-1999 Matra Datavision
// Copyright (c) 1999-2014 OPEN CASCADE SAS
//
// 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 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.
//
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#ifndef _TDataStd_Integer_HeaderFile
#define _TDataStd_Integer_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <Standard_Integer.hxx>
#include <TDF_Attribute.hxx>
#include <Standard_Boolean.hxx>
#include <Standard_OStream.hxx>
class Standard_GUID;
class TDF_Label;
class TDF_Attribute;
class TDF_RelocationTable;
class TDataStd_Integer;
DEFINE_STANDARD_HANDLE(TDataStd_Integer, TDF_Attribute)
//! The basis to define an integer attribute.
class TDataStd_Integer : public TDF_Attribute
{
public:
//! class methods
//! =============
//! Returns the GUID for integers.
Standard_EXPORT static const Standard_GUID& GetID();
//! Finds, or creates, an Integer attribute and sets <value>
//! the Integer attribute is returned.
//! Integer methods
//! ===============
Standard_EXPORT static Handle(TDataStd_Integer) Set (const TDF_Label& label, const Standard_Integer value);
Standard_EXPORT void Set (const Standard_Integer V);
//! Returns the integer value contained in the attribute.
Standard_EXPORT Standard_Integer Get() const;
//! Returns True if there is a reference on the same label
Standard_EXPORT Standard_Boolean IsCaptured() const;
Standard_EXPORT const Standard_GUID& ID() const;
Standard_EXPORT void Restore (const Handle(TDF_Attribute)& With);
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const;
Standard_EXPORT void Paste (const Handle(TDF_Attribute)& Into, const Handle(TDF_RelocationTable)& RT) const;
Standard_EXPORT virtual Standard_OStream& Dump (Standard_OStream& anOS) const Standard_OVERRIDE;
Standard_EXPORT TDataStd_Integer();
DEFINE_STANDARD_RTTI(TDataStd_Integer,TDF_Attribute)
protected:
private:
Standard_Integer myValue;
};
#endif // _TDataStd_Integer_HeaderFile

View File

@@ -1,143 +0,0 @@
-- Created on: 1999-06-16
-- Created by: Sergey RUIN
-- Copyright (c) 1999 Matra Datavision
-- Copyright (c) 1999-2014 OPEN CASCADE SAS
--
-- 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 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.
--
-- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement.
class IntegerArray from TDataStd inherits Attribute from TDF
---Purpose: Contains an array of integers.
uses
GUID from Standard,
HArray1OfInteger from TColStd,
Attribute from TDF,
Label from TDF,
DeltaOnModification from TDF,
RelocationTable from TDF
is
---Purpose: class methods
-- =============
GetID (myclass)
---C++: return const &
---Purpose: Returns the GUID for arrays of integers.
returns GUID from Standard;
Set (myclass; label : Label from TDF; lower, upper : Integer from Standard;
isDelta : Boolean from Standard = Standard_False)
---Purpose: Finds or creates on the <label> an integer array attribute
-- with the specified <lower> and <upper> boundaries.
-- If <isDelta> == False, DefaultDeltaOnModification is used.
-- If <isDelta> == True, DeltaOnModification of the current attribute is used.
-- If attribute is already set, all input parameters are refused and the found
-- attribute is returned.
returns IntegerArray from TDataStd;
---Category: IntegerArray methods
-- ===============
Init(me : mutable; lower, upper : Integer from Standard);
---Purpose: Initialize the inner array with bounds from <lower> to <upper>
SetValue (me : mutable; Index, Value : Integer from Standard);
---Purpose: Sets the <Index>th element of the array to <Value>
-- OutOfRange exception is raised if <Index> doesn't respect Lower and Upper bounds of the internal array.
Value (me; Index : Integer from Standard)
---Purpose: Return the value of the <Index>th element of the array
--
---C++: alias operator ()
returns Integer from Standard;
Lower (me) returns Integer from Standard;
---Purpose: Returns the lower boundary of this array of integers.
Upper (me) returns Integer from Standard;
---Purpose: Return the upper boundary of this array of integers.
Length (me) returns Integer from Standard;
---Purpose: Returns the length of this array of integers in
-- terms of the number of elements it contains.
ChangeArray(me : mutable; newArray : HArray1OfInteger from TColStd;
isCheckItems : Boolean = Standard_True);
---Purpose: Sets the inner array <myValue> of the IntegerArray attribute to
-- <newArray>. If value of <newArray> differs from <myValue>, Backup performed
-- and myValue refers to new instance of HArray1OfInteger that holds <newArray>
-- values
-- If <isCheckItems> equal True each item of <newArray> will be checked with each
-- item of <myValue> for coincidence (to avoid backup).
Array(me) returns HArray1OfInteger from TColStd;
---Purpose: Return the inner array of the IntegerArray attribute
---C++: inline
---C++: return const
GetDelta(me) returns Boolean from Standard;
---C++: inline
SetDelta(me : mutable; isDelta : Boolean from Standard);
---C++: inline
---Purpose: for internal use only!
RemoveArray(me : mutable) is private;
---C++: inline
---Category: methodes of TDF_Attribute
-- =========================
Create returns IntegerArray from TDataStd;
ID (me)
---C++: return const &
returns GUID from Standard;
Restore (me: mutable; With : Attribute from TDF);
NewEmpty (me)
returns Attribute from TDF;
Paste (me; Into : Attribute from TDF;
RT : RelocationTable from TDF);
---Purpose: Note. Uses inside ChangeArray() method
Dump(me; anOS : in out OStream from Standard)
returns OStream from Standard
is redefined;
---C++: return &
---Category: methods to be added for using in DeltaOn Modification
-- =====================================================
DeltaOnModification(me; anOldAttribute : Attribute from TDF)
returns DeltaOnModification from TDF
---Purpose : Makes a DeltaOnModification between <me> and
-- <anOldAttribute>.
is redefined virtual;
fields
myValue : HArray1OfInteger from TColStd;
myIsDelta : Boolean from Standard;
friends
class DeltaOnModificationOfIntArray from TDataStd
end IntegerArray;

View File

@@ -14,15 +14,21 @@
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#include <TDataStd_IntegerArray.ixx>
#include <Standard_GUID.hxx>
#include <Standard_Type.hxx>
#include <TDataStd_DeltaOnModificationOfIntArray.hxx>
#include <TDataStd_IntegerArray.hxx>
#include <TDF_Attribute.hxx>
#include <TDF_DefaultDeltaOnModification.hxx>
#include <TDF_DeltaOnModification.hxx>
#include <TDF_Label.hxx>
#include <TDF_RelocationTable.hxx>
//=======================================================================
//function : GetID
//purpose :
//=======================================================================
const Standard_GUID& TDataStd_IntegerArray::GetID()
{
static Standard_GUID TDataStd_IntegerArrayID ("2a96b61d-ec8b-11d0-bee7-080009dc3333");

View File

@@ -0,0 +1,145 @@
// Created on: 1999-06-16
// Created by: Sergey RUIN
// Copyright (c) 1999 Matra Datavision
// Copyright (c) 1999-2014 OPEN CASCADE SAS
//
// 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 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.
//
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#ifndef _TDataStd_IntegerArray_HeaderFile
#define _TDataStd_IntegerArray_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <TColStd_HArray1OfInteger.hxx>
#include <Standard_Boolean.hxx>
#include <TDF_Attribute.hxx>
#include <Standard_Integer.hxx>
#include <Standard_OStream.hxx>
class TDataStd_DeltaOnModificationOfIntArray;
class Standard_GUID;
class TDF_Label;
class TDF_Attribute;
class TDF_RelocationTable;
class TDF_DeltaOnModification;
class TDataStd_IntegerArray;
DEFINE_STANDARD_HANDLE(TDataStd_IntegerArray, TDF_Attribute)
//! Contains an array of integers.
class TDataStd_IntegerArray : public TDF_Attribute
{
public:
//! class methods
//! =============
//! Returns the GUID for arrays of integers.
Standard_EXPORT static const Standard_GUID& GetID();
//! Finds or creates on the <label> an integer array attribute
//! with the specified <lower> and <upper> boundaries.
//! If <isDelta> == False, DefaultDeltaOnModification is used.
//! If <isDelta> == True, DeltaOnModification of the current attribute is used.
//! If attribute is already set, all input parameters are refused and the found
//! attribute is returned.
Standard_EXPORT static Handle(TDataStd_IntegerArray) Set (const TDF_Label& label, const Standard_Integer lower, const Standard_Integer upper, const Standard_Boolean isDelta = Standard_False);
//! Initialize the inner array with bounds from <lower> to <upper>
Standard_EXPORT void Init (const Standard_Integer lower, const Standard_Integer upper);
//! Sets the <Index>th element of the array to <Value>
//! OutOfRange exception is raised if <Index> doesn't respect Lower and Upper bounds of the internal array.
Standard_EXPORT void SetValue (const Standard_Integer Index, const Standard_Integer Value);
//! Return the value of the <Index>th element of the array
Standard_EXPORT Standard_Integer Value (const Standard_Integer Index) const;
Standard_Integer operator () (const Standard_Integer Index) const
{
return Value(Index);
}
//! Returns the lower boundary of this array of integers.
Standard_EXPORT Standard_Integer Lower() const;
//! Return the upper boundary of this array of integers.
Standard_EXPORT Standard_Integer Upper() const;
//! Returns the length of this array of integers in
//! terms of the number of elements it contains.
Standard_EXPORT Standard_Integer Length() const;
//! Sets the inner array <myValue> of the IntegerArray attribute to
//! <newArray>. If value of <newArray> differs from <myValue>, Backup performed
//! and myValue refers to new instance of HArray1OfInteger that holds <newArray>
//! values
//! If <isCheckItems> equal True each item of <newArray> will be checked with each
//! item of <myValue> for coincidence (to avoid backup).
Standard_EXPORT void ChangeArray (const Handle(TColStd_HArray1OfInteger)& newArray, const Standard_Boolean isCheckItems = Standard_True);
//! Return the inner array of the IntegerArray attribute
const Handle(TColStd_HArray1OfInteger) Array() const;
Standard_Boolean GetDelta() const;
//! for internal use only!
void SetDelta (const Standard_Boolean isDelta);
Standard_EXPORT TDataStd_IntegerArray();
Standard_EXPORT const Standard_GUID& ID() const;
Standard_EXPORT void Restore (const Handle(TDF_Attribute)& With);
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const;
//! Note. Uses inside ChangeArray() method
Standard_EXPORT void Paste (const Handle(TDF_Attribute)& Into, const Handle(TDF_RelocationTable)& RT) const;
Standard_EXPORT virtual Standard_OStream& Dump (Standard_OStream& anOS) const Standard_OVERRIDE;
//! Makes a DeltaOnModification between <me> and
//! <anOldAttribute>.
Standard_EXPORT virtual Handle(TDF_DeltaOnModification) DeltaOnModification (const Handle(TDF_Attribute)& anOldAttribute) const Standard_OVERRIDE;
friend class TDataStd_DeltaOnModificationOfIntArray;
DEFINE_STANDARD_RTTI(TDataStd_IntegerArray,TDF_Attribute)
protected:
private:
void RemoveArray();
Handle(TColStd_HArray1OfInteger) myValue;
Standard_Boolean myIsDelta;
};
#include <TDataStd_IntegerArray.lxx>
#endif // _TDataStd_IntegerArray_HeaderFile

View File

@@ -1,116 +0,0 @@
-- Created on: 2007-05-29
-- Created by: Vlad Romashko
-- Copyright (c) 2007-2014 OPEN CASCADE SAS
--
-- 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 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.
--
-- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement.
class IntegerList from TDataStd inherits Attribute from TDF
---Purpose: Contains a list of integers.
uses
Attribute from TDF,
GUID from Standard,
Label from TDF,
RelocationTable from TDF,
ListOfInteger from TColStd
is
---Purpose: Static methods
-- ==============
GetID (myclass)
---C++: return const &
---Purpose: Returns the ID of the list of integer attribute.
returns GUID from Standard;
Set (myclass; label : Label from TDF)
---Purpose: Finds or creates a list of integer values attribute.
returns IntegerList from TDataStd;
---Category: IntegerList methods
-- ===================
Create
returns IntegerList from TDataStd;
IsEmpty (me)
returns Boolean from Standard;
Extent (me)
returns Integer from Standard;
Prepend (me : mutable;
value : Integer from Standard);
Append (me : mutable;
value : Integer from Standard);
InsertBefore (me : mutable;
value : Integer from Standard;
before_value : Integer from Standard)
---Purpose: Inserts the <value> before the first meet of <before_value>.
returns Boolean from Standard;
InsertAfter (me : mutable;
value : Integer from Standard;
after_value : Integer from Standard)
---Purpose: Inserts the <value> after the first meet of <after_value>.
returns Boolean from Standard;
Remove (me : mutable;
value : Integer from Standard)
---Purpose: Removes the first meet of the <value>.
returns Boolean from Standard;
Clear (me : mutable);
First (me)
returns Integer from Standard;
Last (me)
returns Integer from Standard;
List (me)
---C++: return const &
returns ListOfInteger from TColStd;
---Category: Methodes of TDF_Attribute
-- =========================
ID (me)
---C++: return const &
returns GUID from Standard;
Restore (me: mutable; With : Attribute from TDF);
NewEmpty (me)
returns Attribute from TDF;
Paste (me; Into : Attribute from TDF;
RT : RelocationTable from TDF);
Dump(me; anOS : in out OStream from Standard)
returns OStream from Standard
is redefined;
---C++: return &
fields
myList : ListOfInteger from TColStd;
end IntegerList;

View File

@@ -13,8 +13,14 @@
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#include <TDataStd_IntegerList.ixx>
#include <Standard_GUID.hxx>
#include <Standard_Type.hxx>
#include <TColStd_ListIteratorOfListOfInteger.hxx>
#include <TDataStd_IntegerList.hxx>
#include <TDF_Attribute.hxx>
#include <TDF_Label.hxx>
#include <TDF_RelocationTable.hxx>
//=======================================================================
//function : GetID

View File

@@ -0,0 +1,112 @@
// Created on: 2007-05-29
// Created by: Vlad Romashko
// Copyright (c) 2007-2014 OPEN CASCADE SAS
//
// 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 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.
//
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#ifndef _TDataStd_IntegerList_HeaderFile
#define _TDataStd_IntegerList_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <TColStd_ListOfInteger.hxx>
#include <TDF_Attribute.hxx>
#include <Standard_Boolean.hxx>
#include <Standard_Integer.hxx>
#include <Standard_OStream.hxx>
class Standard_GUID;
class TDF_Label;
class TDF_Attribute;
class TDF_RelocationTable;
class TDataStd_IntegerList;
DEFINE_STANDARD_HANDLE(TDataStd_IntegerList, TDF_Attribute)
//! Contains a list of integers.
class TDataStd_IntegerList : public TDF_Attribute
{
public:
//! Static methods
//! ==============
//! Returns the ID of the list of integer attribute.
Standard_EXPORT static const Standard_GUID& GetID();
//! Finds or creates a list of integer values attribute.
Standard_EXPORT static Handle(TDataStd_IntegerList) Set (const TDF_Label& label);
Standard_EXPORT TDataStd_IntegerList();
Standard_EXPORT Standard_Boolean IsEmpty() const;
Standard_EXPORT Standard_Integer Extent() const;
Standard_EXPORT void Prepend (const Standard_Integer value);
Standard_EXPORT void Append (const Standard_Integer value);
//! Inserts the <value> before the first meet of <before_value>.
Standard_EXPORT Standard_Boolean InsertBefore (const Standard_Integer value, const Standard_Integer before_value);
//! Inserts the <value> after the first meet of <after_value>.
Standard_EXPORT Standard_Boolean InsertAfter (const Standard_Integer value, const Standard_Integer after_value);
//! Removes the first meet of the <value>.
Standard_EXPORT Standard_Boolean Remove (const Standard_Integer value);
Standard_EXPORT void Clear();
Standard_EXPORT Standard_Integer First() const;
Standard_EXPORT Standard_Integer Last() const;
Standard_EXPORT const TColStd_ListOfInteger& List() const;
Standard_EXPORT const Standard_GUID& ID() const;
Standard_EXPORT void Restore (const Handle(TDF_Attribute)& With);
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const;
Standard_EXPORT void Paste (const Handle(TDF_Attribute)& Into, const Handle(TDF_RelocationTable)& RT) const;
Standard_EXPORT virtual Standard_OStream& Dump (Standard_OStream& anOS) const Standard_OVERRIDE;
DEFINE_STANDARD_RTTI(TDataStd_IntegerList,TDF_Attribute)
protected:
private:
TColStd_ListOfInteger myList;
};
#endif // _TDataStd_IntegerList_HeaderFile

View File

@@ -1,177 +0,0 @@
-- Created on: 1997-07-31
-- Created by: Denis PASCAL
-- Copyright (c) 1997-1999 Matra Datavision
-- Copyright (c) 1999-2014 OPEN CASCADE SAS
--
-- 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 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.
--
-- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement.
class Name from TDataStd inherits Attribute from TDF
---Purpose: Used to define a name attribute containing a string which specifies the name.
uses Attribute from TDF,
Label from TDF,
GUID from Standard,
ExtendedString from TCollection,
ListOfExtendedString from TDataStd,
DataSet from TDF,
RelocationTable from TDF,
AttributeSequence from TDF,
AttributeList from TDF,
Data from TDF,
AttributeDelta from TDF
raises
DomainError from Standard
is
---Purpose: class methods working on the name itself
-- ========================================
GetID (myclass)
---C++: return const &
---Purpose: Returns the GUID for name attributes.
returns GUID from Standard;
Set (myclass; label: Label from TDF; string : ExtendedString from TCollection)
---Purpose: Creates (if does not exist) and sets the name in the name attribute.
returns Name from TDataStd;
---Warning: ======================================================
-- As already announced next methods will be moved soon in 2 tools
--
-- * one to search label from name following the framework
-- label hierarchy.
--
-- * one to search label from name following the treenode hierachy.
-- ===============================================================
--Find (myclass; L : Label from TDF; father : in out Name from TDataStd)
---Purpose: from any label <L> search in father labels (L is not
-- concerned) the first name attribute.if found set it in
-- <father>.
--returns Boolean from Standard;
---Purpose: class methods working on the name tree
-- ======================================
--Find (myclass; framework : Data from TDF;
-- fullPath : ListOfExtendedString from TDataStd;
-- name : in out Name from TDataStd)
--returns Boolean from Standard;
---Purpose: Search in the whole TDF_Data the Name attribute which
-- fit with <fullPath>. Returns True if found.
--Find (myclass; current : Label from TDF;
-- string : ExtendedString from TCollection;
-- name : in out Name from TDataStd)
--returns Boolean from Standard;
---Purpose: Search under <currentLabel> a label which fit with
-- <name>. Returns True if found. Shortcut which avoids
-- building a ListOfExtendedStrin.
--Find (myclass; framework : Data from TDF;
-- string : ExtendedString from TCollection;
-- name : in out Name from TDataStd)
--returns Boolean from Standard;
---Purpose: Search in the whole TDF_Data the label which fit with name
-- Returns True if found.
---Purpose: tools methods to translate path <-> pathlist
-- ===========================================
--MakePath (myclass; path : ExtendedString from TCollection;
-- pathlist : in out ListOfExtendedString from TDataStd;
-- Separator: ExtCharacter from Standard = ':')
--returns Boolean from Standard;
---Purpose: move to draw For Draw test we may provide this tool method which convert a path in a
-- sequence of string to call after the FindLabel methods.
-- Example: if it's given "Assembly:Part_1:Sketch_5" it will return in <pathlist>
-- the list of 3 strings: "Assembly","Part_1","Sketch_5".
--MakePath (myclass; pathlist : AttributeList from TDF;
-- path : in out ExtendedString from TCollection;
-- Separator: ExtCharacter from Standard = ':')
---Purpose: move to draw from <pathlist> build the string path
--returns Boolean from Standard;
---Purpose: Name methods
-- ============
Create
returns Name from TDataStd;
--Father (me; father : in out Name from TDataStd)
-- Purpose: Returns the Father Name. The search is done in <me>
-- fathers labels. If noone father is found returns
-- False.
--returns Boolean from Standard;
--FullPath (me; path : in out AttributeList from TDF)
--returns Boolean from Standard;
--ChildNames (me; list : in out AttributeList from TDF)
-- Purpose: puts in list the childs names of me. returns TRUE if
-- found
--returns Boolean from Standard;
--Find (me; relativePath : ListOfExtendedString from TDataStd;
-- name : in out Name from TDataStd)
--returns Boolean from Standard;
Set (me : mutable; S : ExtendedString from TCollection)
raises DomainError from Standard;
---Purpose: Sets <S> as name. Raises if <S> is not a valid name.
Get (me)
returns ExtendedString from TCollection;
---Purpose:
-- Returns the name contained in this name attribute.
---C++: return const &
---Category: TDF_Attribute methods
-- =====================
ID (me)
---C++: return const &
returns GUID from Standard;
Restore (me: mutable; with : Attribute from TDF);
NewEmpty (me)
returns Attribute from TDF;
Paste (me; into : Attribute from TDF;
RT : RelocationTable from TDF);
Dump(me; anOS : in out OStream from Standard)
returns OStream from Standard
is redefined;
---C++: return &
fields
myString : ExtendedString from TCollection; --To store name
end Name;

View File

@@ -14,19 +14,24 @@
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#include <TDataStd_Name.ixx>
#include <TDF_Label.hxx>
#include <TDF_ChildIterator.hxx>
#include <TDF_Tool.hxx>
#include <Standard_DomainError.hxx>
#include <Standard_GUID.hxx>
#include <Standard_Type.hxx>
#include <TCollection_AsciiString.hxx>
#include <TCollection_ExtendedString.hxx>
#include <TDataStd_Name.hxx>
#include <TDF_Attribute.hxx>
#include <TDF_ChildIterator.hxx>
#include <TDF_Label.hxx>
#include <TDF_ListIteratorOfAttributeList.hxx>
#include <TDF_RelocationTable.hxx>
#include <TDF_Tool.hxx>
//=======================================================================
//function : GetID
//purpose :
//=======================================================================
const Standard_GUID& TDataStd_Name::GetID ()
{
static Standard_GUID TDataStd_NameID("2a96b608-ec8b-11d0-bee7-080009dc3333");

View File

@@ -0,0 +1,116 @@
// Created on: 1997-07-31
// Created by: Denis PASCAL
// Copyright (c) 1997-1999 Matra Datavision
// Copyright (c) 1999-2014 OPEN CASCADE SAS
//
// 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 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.
//
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#ifndef _TDataStd_Name_HeaderFile
#define _TDataStd_Name_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <TCollection_ExtendedString.hxx>
#include <TDF_Attribute.hxx>
#include <Standard_OStream.hxx>
class Standard_DomainError;
class Standard_GUID;
class TDF_Label;
class TCollection_ExtendedString;
class TDF_Attribute;
class TDF_RelocationTable;
class TDataStd_Name;
DEFINE_STANDARD_HANDLE(TDataStd_Name, TDF_Attribute)
//! Used to define a name attribute containing a string which specifies the name.
class TDataStd_Name : public TDF_Attribute
{
public:
//! class methods working on the name itself
//! ========================================
//! Returns the GUID for name attributes.
Standard_EXPORT static const Standard_GUID& GetID();
//! Creates (if does not exist) and sets the name in the name attribute.
//! from any label <L> search in father labels (L is not
//! concerned) the first name attribute.if found set it in
//! <father>.
//! class methods working on the name tree
//! ======================================
//! Search in the whole TDF_Data the Name attribute which
//! fit with <fullPath>. Returns True if found.
//! Search under <currentLabel> a label which fit with
//! <name>. Returns True if found. Shortcut which avoids
//! building a ListOfExtendedStrin.
//! Search in the whole TDF_Data the label which fit with name
//! Returns True if found.
//! tools methods to translate path <-> pathlist
//! ===========================================
//! move to draw For Draw test we may provide this tool method which convert a path in a
//! sequence of string to call after the FindLabel methods.
//! Example: if it's given "Assembly:Part_1:Sketch_5" it will return in <pathlist>
//! the list of 3 strings: "Assembly","Part_1","Sketch_5".
//! move to draw from <pathlist> build the string path
//! Name methods
//! ============
Standard_EXPORT static Handle(TDataStd_Name) Set (const TDF_Label& label, const TCollection_ExtendedString& string);
Standard_EXPORT TDataStd_Name();
//! Sets <S> as name. Raises if <S> is not a valid name.
Standard_EXPORT void Set (const TCollection_ExtendedString& S);
//! Returns the name contained in this name attribute.
Standard_EXPORT const TCollection_ExtendedString& Get() const;
Standard_EXPORT const Standard_GUID& ID() const;
Standard_EXPORT void Restore (const Handle(TDF_Attribute)& with);
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const;
Standard_EXPORT void Paste (const Handle(TDF_Attribute)& into, const Handle(TDF_RelocationTable)& RT) const;
Standard_EXPORT virtual Standard_OStream& Dump (Standard_OStream& anOS) const Standard_OVERRIDE;
DEFINE_STANDARD_RTTI(TDataStd_Name,TDF_Attribute)
protected:
private:
TCollection_ExtendedString myString;
};
#endif // _TDataStd_Name_HeaderFile

View File

@@ -1,321 +0,0 @@
-- Created on: 2007-05-29
-- Created by: Vlad Romashko
-- Copyright (c) 2007-2014 OPEN CASCADE SAS
--
-- 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 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.
--
-- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement.
class NamedData from TDataStd inherits Attribute from TDF
---Purpose: Contains a named data.
uses
GUID from Standard,
Attribute from TDF,
Label from TDF,
RelocationTable from TDF,
ExtendedString from TCollection,
HArray1OfInteger from TColStd,
HArray1OfReal from TColStd,
DataMapOfStringInteger from TColStd,
DataMapOfStringReal from TDataStd,
DataMapOfStringString from TDataStd,
DataMapOfStringByte from TDataStd,
DataMapOfStringHArray1OfInteger from TDataStd,
DataMapOfStringHArray1OfReal from TDataStd,
HDataMapOfStringInteger from TDataStd,
HDataMapOfStringReal from TDataStd,
HDataMapOfStringString from TDataStd,
HDataMapOfStringByte from TDataStd,
HDataMapOfStringHArray1OfInteger from TDataStd,
HDataMapOfStringHArray1OfReal from TDataStd
is
---Purpose: Static methods
-- ==============
GetID (myclass)
---C++: return const &
---Purpose: Returns the ID of the named data attribute.
returns GUID from Standard;
Set (myclass; label : Label from TDF)
---Purpose: Finds or creates a named data attribute.
returns NamedData from TDataStd;
---Category: NamedData methods
-- =================
Create
returns NamedData from TDataStd;
---Category: Integers
-- ========
HasIntegers (me)
---Purpose: Returns true if at least one named integer value is
-- kept in the attribute.
---C++: inline
returns Boolean from Standard;
HasInteger (me;
theName : ExtendedString from TCollection)
---Purpose: Returns true if the attribute contains specified by Name
-- integer value.
returns Boolean from Standard;
-- InitIntegers(me : mutable)
-- ---Purpose: Initializes internal container of Integers (to be used before access).
-- -- Returns True if succeed.
-- returns Boolean from Standard;
GetInteger (me : mutable;
theName : ExtendedString from TCollection)
---Purpose: Returns the integer value specified by the Name.
-- It returns 0 if internal map doesn't contain the specified
-- integer (use HasInteger() to check before).
returns Integer from Standard;
SetInteger (me : mutable;
theName : ExtendedString from TCollection;
theInteger : Integer from Standard);
---Purpose: Defines a named integer.
-- If the integer already exists, it changes its value to <theInteger>.
GetIntegersContainer (me : mutable)
---Purpose: Returns the internal container of named integers.
---C++: return const &
returns DataMapOfStringInteger from TColStd;
ChangeIntegers (me : mutable;
theIntegers : DataMapOfStringInteger from TColStd);
---Purpose: Replace the container content by new content of the <theIntegers>.
---Category: Reals
-- =====
HasReals (me)
---Purpose: Returns true if at least one named real value is
-- kept in the attribute.
---C++: inline
returns Boolean from Standard;
HasReal (me;
theName : ExtendedString from TCollection)
---Purpose: Returns true if the attribute contains a real specified by Name.
returns Boolean from Standard;
GetReal (me : mutable;
theName : ExtendedString from TCollection)
---Purpose: Returns the named real.
-- It returns 0.0 if there is no such a named real
-- (use HasReal()).
returns Real from Standard;
SetReal (me : mutable;
theName : ExtendedString from TCollection;
theReal : Real from Standard);
---Purpose: Defines a named real.
-- If the real already exists, it changes its value to <theReal>.
GetRealsContainer (me: mutable)
---Purpose: Returns the internal container of named reals.
---C++: return const &
returns DataMapOfStringReal from TDataStd;
ChangeReals (me : mutable;
theReals : DataMapOfStringReal from TDataStd);
---Purpose: Replace the container content by new content of the <theReals>.
---Category: Strings
-- =======
HasStrings (me)
---Purpose: Returns true if there are some named strings in the attribute.
---C++: inline
returns Boolean from Standard;
HasString (me;
theName : ExtendedString from TCollection)
---Purpose: Returns true if the attribute contains this named string.
returns Boolean from Standard;
GetString (me : mutable;
theName : ExtendedString from TCollection)
---Purpose: Returns the named string.
-- It returns an empty string if there is no such a named string
-- (use HasString()).
---C++: return const &
returns ExtendedString from TCollection;
SetString (me : mutable;
theName : ExtendedString from TCollection;
theString : ExtendedString from TCollection);
---Purpose: Defines a named string.
-- If the string already exists, it changes its value to <theString>.
GetStringsContainer (me : mutable)
---Purpose: Returns the internal container of named strings.
---C++: return const &
returns DataMapOfStringString from TDataStd;
ChangeStrings (me : mutable;
theStrings : DataMapOfStringString from TDataStd);
---Purpose: Replace the container content by new content of the <theStrings>.
---Category: Bytes (unsigned chars)
-- ======================
HasBytes (me)
---Purpose: Returns true if there are some named bytes in the attribute.
---C++: inline
returns Boolean from Standard;
HasByte (me;
theName : ExtendedString from TCollection)
---Purpose: Returns true if the attribute contains this named byte.
returns Boolean from Standard;
GetByte (me : mutable;
theName : ExtendedString from TCollection)
---Purpose: Returns the named byte.
-- It returns 0 if there is no such a named byte
-- (use HasByte()).
returns Byte from Standard;
SetByte (me : mutable;
theName : ExtendedString from TCollection;
theByte : Byte from Standard);
---Purpose: Defines a named byte.
-- If the byte already exists, it changes its value to <theByte>.
GetBytesContainer (me : mutable)
---Purpose: Returns the internal container of named bytes.
---C++: return const &
returns DataMapOfStringByte from TDataStd;
ChangeBytes (me : mutable;
theBytes : DataMapOfStringByte from TDataStd);
---Purpose: Replace the container content by new content of the <theBytes>.
---Category: Arrays of integers
-- ==================
HasArraysOfIntegers (me)
---Purpose: Returns true if there are some named arrays of integer values in the attribute.
---C++: inline
returns Boolean from Standard;
HasArrayOfIntegers (me;
theName : ExtendedString from TCollection)
---Purpose: Returns true if the attribute contains this named array of integer values.
returns Boolean from Standard;
GetArrayOfIntegers (me : mutable;
theName : ExtendedString from TCollection)
---Purpose: Returns the named array of integer values.
-- It returns a NULL Handle if there is no such a named array of integers
-- (use HasArrayOfIntegers()).
---C++: return const &
returns HArray1OfInteger from TColStd;
SetArrayOfIntegers (me : mutable;
theName : ExtendedString from TCollection;
theArrayOfIntegers : HArray1OfInteger from TColStd);
---Purpose: Defines a named array of integer values.
-- If the array already exists, it changes its value to <theArrayOfIntegers>.
GetArraysOfIntegersContainer (me : mutable)
---Purpose: Returns the internal container of named arrays of integer values.
---C++: return const &
returns DataMapOfStringHArray1OfInteger from TDataStd;
ChangeArraysOfIntegers (me : mutable;
theArraysOfIntegers : DataMapOfStringHArray1OfInteger from TDataStd);
---Purpose: Replace the container content by new content of the <theArraysOfIntegers>.
---Category: Arrays of reals
-- ===============
HasArraysOfReals (me)
---Purpose: Returns true if there are some named arrays of real values in the attribute.
---C++: inline
returns Boolean from Standard;
HasArrayOfReals (me;
theName : ExtendedString from TCollection)
---Purpose: Returns true if the attribute contains this named array of real values.
returns Boolean from Standard;
GetArrayOfReals (me : mutable;
theName : ExtendedString from TCollection)
---Purpose: Returns the named array of real values.
-- It returns a NULL Handle if there is no such a named array of reals
-- (use HasArrayOfReals()).
---C++: return const &
returns HArray1OfReal from TColStd;
SetArrayOfReals (me : mutable;
theName : ExtendedString from TCollection;
theArrayOfReals : HArray1OfReal from TColStd);
---Purpose: Defines a named array of real values.
-- If the array already exists, it changes its value to <theArrayOfReals>.
GetArraysOfRealsContainer (me : mutable)
---Purpose: Returns the internal container of named arrays of real values.
---C++: return const &
returns DataMapOfStringHArray1OfReal from TDataStd;
ChangeArraysOfReals (me : mutable;
theArraysOfReals : DataMapOfStringHArray1OfReal from TDataStd);
---Purpose: Replace the container content by new content of the <theArraysOfReals>.
---Category: Methodes of TDF_Attribute
-- =========================
ID (me)
---C++: return const &
returns GUID from Standard;
Restore (me: mutable; With : Attribute from TDF);
NewEmpty (me)
returns Attribute from TDF;
Paste (me; Into : Attribute from TDF;
RT : RelocationTable from TDF);
Dump(me; anOS : in out OStream from Standard)
returns OStream from Standard
is redefined;
---C++: return &
fields
myIntegers : HDataMapOfStringInteger from TDataStd;
myReals : HDataMapOfStringReal from TDataStd;
myStrings : HDataMapOfStringString from TDataStd;
myBytes : HDataMapOfStringByte from TDataStd;
myArraysOfIntegers : HDataMapOfStringHArray1OfInteger from TDataStd;
myArraysOfReals : HDataMapOfStringHArray1OfReal from TDataStd;
end NamedData;

View File

@@ -13,14 +13,26 @@
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#include <TDataStd_NamedData.ixx>
#include <Standard_GUID.hxx>
#include <Standard_Type.hxx>
#include <TCollection_ExtendedString.hxx>
#include <TColStd_DataMapIteratorOfDataMapOfStringInteger.hxx>
#include <TDataStd_DataMapIteratorOfDataMapOfStringReal.hxx>
#include <TDataStd_DataMapIteratorOfDataMapOfStringString.hxx>
#include <TDataStd_DataMapIteratorOfDataMapOfStringByte.hxx>
#include <TDataStd_DataMapIteratorOfDataMapOfStringHArray1OfInteger.hxx>
#include <TDataStd_DataMapIteratorOfDataMapOfStringHArray1OfReal.hxx>
#include <TDataStd_DataMapIteratorOfDataMapOfStringReal.hxx>
#include <TDataStd_DataMapIteratorOfDataMapOfStringString.hxx>
#include <TDataStd_HDataMapOfStringByte.hxx>
#include <TDataStd_HDataMapOfStringHArray1OfInteger.hxx>
#include <TDataStd_HDataMapOfStringHArray1OfReal.hxx>
#include <TDataStd_HDataMapOfStringInteger.hxx>
#include <TDataStd_HDataMapOfStringReal.hxx>
#include <TDataStd_HDataMapOfStringString.hxx>
#include <TDataStd_NamedData.hxx>
#include <TDF_Attribute.hxx>
#include <TDF_Label.hxx>
#include <TDF_RelocationTable.hxx>
#ifdef WNT
#define EXCEPTION ...

View File

@@ -0,0 +1,238 @@
// Created on: 2007-05-29
// Created by: Vlad Romashko
// Copyright (c) 2007-2014 OPEN CASCADE SAS
//
// 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 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.
//
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#ifndef _TDataStd_NamedData_HeaderFile
#define _TDataStd_NamedData_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <TDF_Attribute.hxx>
#include <Standard_Boolean.hxx>
#include <Standard_Integer.hxx>
#include <TColStd_DataMapOfStringInteger.hxx>
#include <Standard_Real.hxx>
#include <TDataStd_DataMapOfStringReal.hxx>
#include <TDataStd_DataMapOfStringString.hxx>
#include <Standard_Byte.hxx>
#include <TDataStd_DataMapOfStringByte.hxx>
#include <TColStd_HArray1OfInteger.hxx>
#include <TDataStd_DataMapOfStringHArray1OfInteger.hxx>
#include <TColStd_HArray1OfReal.hxx>
#include <TDataStd_DataMapOfStringHArray1OfReal.hxx>
#include <Standard_OStream.hxx>
class TDataStd_HDataMapOfStringInteger;
class TDataStd_HDataMapOfStringReal;
class TDataStd_HDataMapOfStringString;
class TDataStd_HDataMapOfStringByte;
class TDataStd_HDataMapOfStringHArray1OfInteger;
class TDataStd_HDataMapOfStringHArray1OfReal;
class Standard_GUID;
class TDF_Label;
class TCollection_ExtendedString;
class TDF_Attribute;
class TDF_RelocationTable;
class TDataStd_NamedData;
DEFINE_STANDARD_HANDLE(TDataStd_NamedData, TDF_Attribute)
//! Contains a named data.
class TDataStd_NamedData : public TDF_Attribute
{
public:
//! Static methods
//! ==============
//! Returns the ID of the named data attribute.
Standard_EXPORT static const Standard_GUID& GetID();
//! Finds or creates a named data attribute.
Standard_EXPORT static Handle(TDataStd_NamedData) Set (const TDF_Label& label);
Standard_EXPORT TDataStd_NamedData();
//! Returns true if at least one named integer value is
//! kept in the attribute.
Standard_Boolean HasIntegers() const;
//! Returns true if the attribute contains specified by Name
//! integer value.
Standard_EXPORT Standard_Boolean HasInteger (const TCollection_ExtendedString& theName) const;
//! Returns the integer value specified by the Name.
//! It returns 0 if internal map doesn't contain the specified
//! integer (use HasInteger() to check before).
Standard_EXPORT Standard_Integer GetInteger (const TCollection_ExtendedString& theName);
//! Defines a named integer.
//! If the integer already exists, it changes its value to <theInteger>.
Standard_EXPORT void SetInteger (const TCollection_ExtendedString& theName, const Standard_Integer theInteger);
//! Returns the internal container of named integers.
Standard_EXPORT const TColStd_DataMapOfStringInteger& GetIntegersContainer();
//! Replace the container content by new content of the <theIntegers>.
Standard_EXPORT void ChangeIntegers (const TColStd_DataMapOfStringInteger& theIntegers);
//! Returns true if at least one named real value is
//! kept in the attribute.
Standard_Boolean HasReals() const;
//! Returns true if the attribute contains a real specified by Name.
Standard_EXPORT Standard_Boolean HasReal (const TCollection_ExtendedString& theName) const;
//! Returns the named real.
//! It returns 0.0 if there is no such a named real
//! (use HasReal()).
Standard_EXPORT Standard_Real GetReal (const TCollection_ExtendedString& theName);
//! Defines a named real.
//! If the real already exists, it changes its value to <theReal>.
Standard_EXPORT void SetReal (const TCollection_ExtendedString& theName, const Standard_Real theReal);
//! Returns the internal container of named reals.
Standard_EXPORT const TDataStd_DataMapOfStringReal& GetRealsContainer();
//! Replace the container content by new content of the <theReals>.
Standard_EXPORT void ChangeReals (const TDataStd_DataMapOfStringReal& theReals);
//! Returns true if there are some named strings in the attribute.
Standard_Boolean HasStrings() const;
//! Returns true if the attribute contains this named string.
Standard_EXPORT Standard_Boolean HasString (const TCollection_ExtendedString& theName) const;
//! Returns the named string.
//! It returns an empty string if there is no such a named string
//! (use HasString()).
Standard_EXPORT const TCollection_ExtendedString& GetString (const TCollection_ExtendedString& theName);
//! Defines a named string.
//! If the string already exists, it changes its value to <theString>.
Standard_EXPORT void SetString (const TCollection_ExtendedString& theName, const TCollection_ExtendedString& theString);
//! Returns the internal container of named strings.
Standard_EXPORT const TDataStd_DataMapOfStringString& GetStringsContainer();
//! Replace the container content by new content of the <theStrings>.
Standard_EXPORT void ChangeStrings (const TDataStd_DataMapOfStringString& theStrings);
//! Returns true if there are some named bytes in the attribute.
Standard_Boolean HasBytes() const;
//! Returns true if the attribute contains this named byte.
Standard_EXPORT Standard_Boolean HasByte (const TCollection_ExtendedString& theName) const;
//! Returns the named byte.
//! It returns 0 if there is no such a named byte
//! (use HasByte()).
Standard_EXPORT Standard_Byte GetByte (const TCollection_ExtendedString& theName);
//! Defines a named byte.
//! If the byte already exists, it changes its value to <theByte>.
Standard_EXPORT void SetByte (const TCollection_ExtendedString& theName, const Standard_Byte theByte);
//! Returns the internal container of named bytes.
Standard_EXPORT const TDataStd_DataMapOfStringByte& GetBytesContainer();
//! Replace the container content by new content of the <theBytes>.
Standard_EXPORT void ChangeBytes (const TDataStd_DataMapOfStringByte& theBytes);
//! Returns true if there are some named arrays of integer values in the attribute.
Standard_Boolean HasArraysOfIntegers() const;
//! Returns true if the attribute contains this named array of integer values.
Standard_EXPORT Standard_Boolean HasArrayOfIntegers (const TCollection_ExtendedString& theName) const;
//! Returns the named array of integer values.
//! It returns a NULL Handle if there is no such a named array of integers
//! (use HasArrayOfIntegers()).
Standard_EXPORT const Handle(TColStd_HArray1OfInteger)& GetArrayOfIntegers (const TCollection_ExtendedString& theName);
//! Defines a named array of integer values.
//! If the array already exists, it changes its value to <theArrayOfIntegers>.
Standard_EXPORT void SetArrayOfIntegers (const TCollection_ExtendedString& theName, const Handle(TColStd_HArray1OfInteger)& theArrayOfIntegers);
//! Returns the internal container of named arrays of integer values.
Standard_EXPORT const TDataStd_DataMapOfStringHArray1OfInteger& GetArraysOfIntegersContainer();
//! Replace the container content by new content of the <theArraysOfIntegers>.
Standard_EXPORT void ChangeArraysOfIntegers (const TDataStd_DataMapOfStringHArray1OfInteger& theArraysOfIntegers);
//! Returns true if there are some named arrays of real values in the attribute.
Standard_Boolean HasArraysOfReals() const;
//! Returns true if the attribute contains this named array of real values.
Standard_EXPORT Standard_Boolean HasArrayOfReals (const TCollection_ExtendedString& theName) const;
//! Returns the named array of real values.
//! It returns a NULL Handle if there is no such a named array of reals
//! (use HasArrayOfReals()).
Standard_EXPORT const Handle(TColStd_HArray1OfReal)& GetArrayOfReals (const TCollection_ExtendedString& theName);
//! Defines a named array of real values.
//! If the array already exists, it changes its value to <theArrayOfReals>.
Standard_EXPORT void SetArrayOfReals (const TCollection_ExtendedString& theName, const Handle(TColStd_HArray1OfReal)& theArrayOfReals);
//! Returns the internal container of named arrays of real values.
Standard_EXPORT const TDataStd_DataMapOfStringHArray1OfReal& GetArraysOfRealsContainer();
//! Replace the container content by new content of the <theArraysOfReals>.
Standard_EXPORT void ChangeArraysOfReals (const TDataStd_DataMapOfStringHArray1OfReal& theArraysOfReals);
Standard_EXPORT const Standard_GUID& ID() const;
Standard_EXPORT void Restore (const Handle(TDF_Attribute)& With);
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const;
Standard_EXPORT void Paste (const Handle(TDF_Attribute)& Into, const Handle(TDF_RelocationTable)& RT) const;
Standard_EXPORT virtual Standard_OStream& Dump (Standard_OStream& anOS) const Standard_OVERRIDE;
DEFINE_STANDARD_RTTI(TDataStd_NamedData,TDF_Attribute)
protected:
private:
Handle(TDataStd_HDataMapOfStringInteger) myIntegers;
Handle(TDataStd_HDataMapOfStringReal) myReals;
Handle(TDataStd_HDataMapOfStringString) myStrings;
Handle(TDataStd_HDataMapOfStringByte) myBytes;
Handle(TDataStd_HDataMapOfStringHArray1OfInteger) myArraysOfIntegers;
Handle(TDataStd_HDataMapOfStringHArray1OfReal) myArraysOfReals;
};
#include <TDataStd_NamedData.lxx>
#endif // _TDataStd_NamedData_HeaderFile

View File

@@ -1,91 +0,0 @@
-- Created on: 1997-07-29
-- Created by: Denis PASCAL
-- Copyright (c) 1997-1999 Matra Datavision
-- Copyright (c) 1999-2014 OPEN CASCADE SAS
--
-- 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 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.
--
-- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement.
class NoteBook from TDataStd inherits Attribute from TDF
---Purpose: NoteBook Object attribute
uses Attribute from TDF,
Label from TDF,
Real from TDataStd,
Integer from TDataStd,
GUID from Standard,
DataSet from TDF,
RelocationTable from TDF
is
---Purpose: class methods
-- =============
Find (myclass; current : Label from TDF; N : in out NoteBook from TDataStd)
---Purpose: try to retrieve a NoteBook attribute at <current> label
-- or in fathers label of <current>. Returns True if
-- found and set <N>.
returns Boolean from Standard;
New (myclass; label : Label from TDF)
---Purpose: Create an enpty NoteBook attribute, located at
-- <label>. Raises if <label> has attribute
returns NoteBook from TDataStd;
GetID (myclass)
---C++: return const &
returns GUID from Standard;
---Purpose: NoteBook methods
-- ===============
Create
returns NoteBook from TDataStd;
Append (me : mutable; value : Real from Standard;
isExported : Boolean from Standard = Standard_False)
---Purpose: Tool to Create an Integer attribute from <value>,
-- Insert it in a new son label of <me>. The Real
-- attribute is returned.
returns Real from TDataStd;
Append (me : mutable; value : Integer from Standard;
isExported : Boolean from Standard = Standard_False)
---Purpose: Tool to Create an Real attribute from <value>, Insert
-- it in a new son label of <me>. The Integer attribute
-- is returned.
returns Integer from TDataStd;
---Category: methodes de TDF_Attribute
-- =========================
ID (me)
---C++: return const &
returns GUID from Standard;
Restore (me: mutable; with : Attribute from TDF);
NewEmpty (me)
returns Attribute from TDF;
Paste (me; into : Attribute from TDF;
RT : RelocationTable from TDF);
Dump(me; anOS : in out OStream from Standard)
returns OStream from Standard
is redefined;
---C++: return &
end NoteBook;

View File

@@ -14,18 +14,22 @@
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#include <TDataStd_NoteBook.ixx>
#include <TDF_TagSource.hxx>
#include <TDataStd_Real.hxx>
#include <TDataStd_Integer.hxx>
#include <TDF_Label.hxx>
#include <Standard_DomainError.hxx>
#include <Standard_GUID.hxx>
#include <Standard_Type.hxx>
#include <TDataStd_Integer.hxx>
#include <TDataStd_NoteBook.hxx>
#include <TDataStd_Real.hxx>
#include <TDF_Attribute.hxx>
#include <TDF_Label.hxx>
#include <TDF_RelocationTable.hxx>
#include <TDF_TagSource.hxx>
//=======================================================================
//function : Find
//purpose :
//=======================================================================
Standard_Boolean TDataStd_NoteBook::Find (const TDF_Label& current,
Handle(TDataStd_NoteBook)& N)
{

View File

@@ -0,0 +1,106 @@
// Created on: 1997-07-29
// Created by: Denis PASCAL
// Copyright (c) 1997-1999 Matra Datavision
// Copyright (c) 1999-2014 OPEN CASCADE SAS
//
// 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 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.
//
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#ifndef _TDataStd_NoteBook_HeaderFile
#define _TDataStd_NoteBook_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <TDF_Attribute.hxx>
#include <Standard_Boolean.hxx>
#include <Standard_Real.hxx>
#include <Standard_Integer.hxx>
#include <Standard_OStream.hxx>
class TDF_Label;
class Standard_GUID;
class TDataStd_Real;
class TDataStd_Integer;
class TDF_Attribute;
class TDF_RelocationTable;
class TDataStd_NoteBook;
DEFINE_STANDARD_HANDLE(TDataStd_NoteBook, TDF_Attribute)
//! NoteBook Object attribute
class TDataStd_NoteBook : public TDF_Attribute
{
public:
//! class methods
//! =============
//! try to retrieve a NoteBook attribute at <current> label
//! or in fathers label of <current>. Returns True if
//! found and set <N>.
Standard_EXPORT static Standard_Boolean Find (const TDF_Label& current, Handle(TDataStd_NoteBook)& N);
//! Create an enpty NoteBook attribute, located at
//! <label>. Raises if <label> has attribute
Standard_EXPORT static Handle(TDataStd_NoteBook) New (const TDF_Label& label);
//! NoteBook methods
//! ===============
Standard_EXPORT static const Standard_GUID& GetID();
Standard_EXPORT TDataStd_NoteBook();
//! Tool to Create an Integer attribute from <value>,
//! Insert it in a new son label of <me>. The Real
//! attribute is returned.
Standard_EXPORT Handle(TDataStd_Real) Append (const Standard_Real value, const Standard_Boolean isExported = Standard_False);
//! Tool to Create an Real attribute from <value>, Insert
//! it in a new son label of <me>. The Integer attribute
//! is returned.
Standard_EXPORT Handle(TDataStd_Integer) Append (const Standard_Integer value, const Standard_Boolean isExported = Standard_False);
Standard_EXPORT const Standard_GUID& ID() const;
Standard_EXPORT void Restore (const Handle(TDF_Attribute)& with);
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const;
Standard_EXPORT void Paste (const Handle(TDF_Attribute)& into, const Handle(TDF_RelocationTable)& RT) const;
Standard_EXPORT virtual Standard_OStream& Dump (Standard_OStream& anOS) const Standard_OVERRIDE;
DEFINE_STANDARD_RTTI(TDataStd_NoteBook,TDF_Attribute)
protected:
private:
};
#endif // _TDataStd_NoteBook_HeaderFile

View File

@@ -0,0 +1,23 @@
// Created on: 1995-05-10
// Created by: Denis PASCAL
// Copyright (c) 1995-1999 Matra Datavision
// Copyright (c) 1999-2014 OPEN CASCADE SAS
//
// 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 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.
//
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#ifndef _TDataStd_PtrTreeNode_HeaderFile
#define _TDataStd_PtrTreeNode_HeaderFile
class TDataStd_TreeNode;
typedef TDataStd_TreeNode* TDataStd_PtrTreeNode;
#endif // _TDataStd_PtrTreeNode_HeaderFile

View File

@@ -1,94 +0,0 @@
-- Created on: 1997-02-06
-- Created by: Denis PASCAL
-- Copyright (c) 1997-1999 Matra Datavision
-- Copyright (c) 1999-2014 OPEN CASCADE SAS
--
-- 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 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.
--
-- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement.
class Real from TDataStd inherits Attribute from TDF
---Purpose: The basis to define a real number attribute.
uses Attribute from TDF,
Label from TDF,
GUID from Standard,
Real from Standard,
RelocationTable from TDF,
RealEnum from TDataStd
is
---Purpose: class methods
-- =============
GetID (myclass)
---C++: return const &
---Purpose: Returns the GUID for real numbers.
returns GUID from Standard;
Set (myclass ; label : Label from TDF; value : Real from Standard)
---Purpose: Finds, or creates, an Real attribute and sets <value> the
-- Real attribute is returned. the Real dimension is
-- Scalar by default. use SetDimension to overwrite.
returns Real from TDataStd;
---Purpose: Real methods
-- ============
Create
returns Real from TDataStd;
SetDimension (me : mutable; DIM : RealEnum from TDataStd);
GetDimension (me)
returns RealEnum from TDataStd;
Set (me : mutable; V : Real from Standard);
---Purpose:
-- Finds or creates the real number V.
Get (me)
returns Real from Standard;
---Purpose:
-- Returns the real number value contained in the attribute.
IsCaptured(me) returns Boolean;
---Purpose: Returns True if there is a reference on the same label
---Category: TDF_Attribute methods
-- =====================
ID (me)
---C++: return const &
returns GUID from Standard;
Restore (me: mutable; With : Attribute from TDF);
NewEmpty(me)
returns Attribute from TDF;
Paste (me; Into : Attribute from TDF;
RT : RelocationTable from TDF);
Dump(me; anOS : in out OStream from Standard)
returns OStream from Standard
is redefined;
---C++: return &
fields
myValue : Real from Standard;
myDimension : RealEnum from TDataStd;
end Real;

View File

@@ -14,16 +14,20 @@
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#include <TDataStd_Real.ixx>
#include <TDF_Reference.hxx>
#include <TDataStd.hxx>
#include <Standard_GUID.hxx>
#include <Standard_Type.hxx>
#include <TDataStd.hxx>
#include <TDataStd_Real.hxx>
#include <TDF_Attribute.hxx>
#include <TDF_Label.hxx>
#include <TDF_Reference.hxx>
#include <TDF_RelocationTable.hxx>
//=======================================================================
//function : GetID
//purpose :
//=======================================================================
const Standard_GUID& TDataStd_Real::GetID()
{
static Standard_GUID TDataStd_RealID("2a96b60f-ec8b-11d0-bee7-080009dc3333");

View File

@@ -0,0 +1,108 @@
// Created on: 1997-02-06
// Created by: Denis PASCAL
// Copyright (c) 1997-1999 Matra Datavision
// Copyright (c) 1999-2014 OPEN CASCADE SAS
//
// 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 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.
//
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#ifndef _TDataStd_Real_HeaderFile
#define _TDataStd_Real_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <Standard_Real.hxx>
#include <TDataStd_RealEnum.hxx>
#include <TDF_Attribute.hxx>
#include <Standard_Boolean.hxx>
#include <Standard_OStream.hxx>
class Standard_GUID;
class TDF_Label;
class TDF_Attribute;
class TDF_RelocationTable;
class TDataStd_Real;
DEFINE_STANDARD_HANDLE(TDataStd_Real, TDF_Attribute)
//! The basis to define a real number attribute.
class TDataStd_Real : public TDF_Attribute
{
public:
//! class methods
//! =============
//! Returns the GUID for real numbers.
Standard_EXPORT static const Standard_GUID& GetID();
//! Finds, or creates, an Real attribute and sets <value> the
//! Real attribute is returned. the Real dimension is
//! Scalar by default. use SetDimension to overwrite.
//! Real methods
//! ============
Standard_EXPORT static Handle(TDataStd_Real) Set (const TDF_Label& label, const Standard_Real value);
Standard_EXPORT TDataStd_Real();
Standard_EXPORT void SetDimension (const TDataStd_RealEnum DIM);
Standard_EXPORT TDataStd_RealEnum GetDimension() const;
//! Finds or creates the real number V.
Standard_EXPORT void Set (const Standard_Real V);
//! Returns the real number value contained in the attribute.
Standard_EXPORT Standard_Real Get() const;
//! Returns True if there is a reference on the same label
Standard_EXPORT Standard_Boolean IsCaptured() const;
Standard_EXPORT const Standard_GUID& ID() const;
Standard_EXPORT void Restore (const Handle(TDF_Attribute)& With);
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const;
Standard_EXPORT void Paste (const Handle(TDF_Attribute)& Into, const Handle(TDF_RelocationTable)& RT) const;
Standard_EXPORT virtual Standard_OStream& Dump (Standard_OStream& anOS) const Standard_OVERRIDE;
DEFINE_STANDARD_RTTI(TDataStd_Real,TDF_Attribute)
protected:
private:
Standard_Real myValue;
TDataStd_RealEnum myDimension;
};
#endif // _TDataStd_Real_HeaderFile

View File

@@ -1,139 +0,0 @@
-- Created on: 1999-06-16
-- Created by: Sergey RUIN
-- Copyright (c) 1999 Matra Datavision
-- Copyright (c) 1999-2014 OPEN CASCADE SAS
--
-- 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 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.
--
-- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement.
class RealArray from TDataStd inherits Attribute from TDF
---Purpose: A framework for an attribute composed of a real number array.
uses
HArray1OfReal from TColStd,
GUID from Standard,
Attribute from TDF,
Label from TDF,
DeltaOnModification from TDF,
RelocationTable from TDF
is
---Purpose: class methods
-- =============
GetID (myclass)
---C++: return const &
---Purpose: Returns the GUID for arrays of reals.
returns GUID from Standard;
Set (myclass; label : Label from TDF; lower, upper : Integer from Standard;
isDelta : Boolean from Standard = Standard_False)
---Purpose: Finds or creates on the <label> a real array attribute with
-- the specified <lower> and <upper> boundaries.
-- If <isDelta> == False, DefaultDeltaOnModification is used.
-- If <isDelta> == True, DeltaOnModification of the current attribute is used.
-- If attribute is already set, input parameter <isDelta> is refused and the found
-- attribute returned.
returns RealArray from TDataStd;
---Category: RealArray methods
-- ===============
Init(me : mutable; lower, upper : Integer from Standard);
---Purpose: Initialize the inner array with bounds from <lower> to <upper>
SetValue (me : mutable; Index :Integer from Standard; Value : Real from Standard);
---Purpose: Sets the <Index>th element of the array to <Value>
-- OutOfRange exception is raised if <Index> doesn't respect Lower and Upper bounds of the internal array.
Value (me; Index : Integer from Standard)
---Purpose: Return the value of the <Index>th element of the array
--
---C++: alias operator ()
returns Real from Standard;
Lower (me) returns Integer from Standard;
---Purpose: Returns the lower boundary of the array.
Upper (me) returns Integer from Standard;
---Purpose: Returns the upper boundary of the array.
Length (me) returns Integer from Standard;
---Purpose: Returns the number of elements of the array of reals
-- in terms of the number of elements it contains.
ChangeArray(me : mutable; newArray : HArray1OfReal from TColStd;
isCheckItems : Boolean = Standard_True);
---Purpose: Sets the inner array <myValue> of the RealArray attribute
-- to <newArray>. If value of <newArray> differs from <myValue>,
-- Backup performed and myValue refers to new instance of HArray1OfReal
-- that holds <newArray> values
-- If <isCheckItems> equal True each item of <newArray> will be checked with each
-- item of <myValue> for coincidence (to avoid backup).
Array(me) returns HArray1OfReal from TColStd;
---Purpose: Returns the handle of this array of reals.
---C++: inline
---C++: return const
GetDelta(me) returns Boolean from Standard;
---C++: inline
SetDelta(me : mutable; isDelta : Boolean from Standard);
---C++: inline
---Purpose: for internal use only!
RemoveArray(me : mutable) is private;
---C++: inline
---Category: methodes of TDF_Attribute
-- =========================
Create
returns RealArray from TDataStd;
ID (me)
---C++: return const &
returns GUID from Standard;
Restore (me: mutable; With : Attribute from TDF);
NewEmpty (me)
returns Attribute from TDF;
Paste (me; Into : Attribute from TDF;
RT : RelocationTable from TDF);
---Purpose: Note. Uses inside ChangeArray() method
Dump(me; anOS : in out OStream from Standard)
returns OStream from Standard
is redefined;
---C++: return &
---Category: methods to be added for using in DeltaOnModification
-- =====================================================
DeltaOnModification(me; anOldAttribute : Attribute from TDF)
returns DeltaOnModification from TDF
---Purpose : Makes a DeltaOnModification between <me> and
-- <anOldAttribute>.
is redefined virtual;
fields
myValue : HArray1OfReal from TColStd;
myIsDelta : Boolean from Standard;
friends
class DeltaOnModificationOfRealArray from TDataStd
end RealArray;

View File

@@ -14,15 +14,21 @@
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#include <TDataStd_RealArray.ixx>
#include <Standard_GUID.hxx>
#include <Standard_Type.hxx>
#include <TDataStd_DeltaOnModificationOfRealArray.hxx>
#include <TDataStd_RealArray.hxx>
#include <TDF_Attribute.hxx>
#include <TDF_DefaultDeltaOnModification.hxx>
#include <TDF_DeltaOnModification.hxx>
#include <TDF_Label.hxx>
#include <TDF_RelocationTable.hxx>
//=======================================================================
//function : GetID
//purpose :
//=======================================================================
const Standard_GUID& TDataStd_RealArray::GetID()
{
static Standard_GUID TDataStd_RealArrayID ("2a96b61e-ec8b-11d0-bee7-080009dc3333");

View File

@@ -0,0 +1,146 @@
// Created on: 1999-06-16
// Created by: Sergey RUIN
// Copyright (c) 1999 Matra Datavision
// Copyright (c) 1999-2014 OPEN CASCADE SAS
//
// 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 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.
//
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#ifndef _TDataStd_RealArray_HeaderFile
#define _TDataStd_RealArray_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <TColStd_HArray1OfReal.hxx>
#include <Standard_Boolean.hxx>
#include <TDF_Attribute.hxx>
#include <Standard_Integer.hxx>
#include <Standard_Real.hxx>
#include <Standard_OStream.hxx>
class TDataStd_DeltaOnModificationOfRealArray;
class Standard_GUID;
class TDF_Label;
class TDF_Attribute;
class TDF_RelocationTable;
class TDF_DeltaOnModification;
class TDataStd_RealArray;
DEFINE_STANDARD_HANDLE(TDataStd_RealArray, TDF_Attribute)
//! A framework for an attribute composed of a real number array.
class TDataStd_RealArray : public TDF_Attribute
{
public:
//! class methods
//! =============
//! Returns the GUID for arrays of reals.
Standard_EXPORT static const Standard_GUID& GetID();
//! Finds or creates on the <label> a real array attribute with
//! the specified <lower> and <upper> boundaries.
//! If <isDelta> == False, DefaultDeltaOnModification is used.
//! If <isDelta> == True, DeltaOnModification of the current attribute is used.
//! If attribute is already set, input parameter <isDelta> is refused and the found
//! attribute returned.
Standard_EXPORT static Handle(TDataStd_RealArray) Set (const TDF_Label& label, const Standard_Integer lower, const Standard_Integer upper, const Standard_Boolean isDelta = Standard_False);
//! Initialize the inner array with bounds from <lower> to <upper>
Standard_EXPORT void Init (const Standard_Integer lower, const Standard_Integer upper);
//! Sets the <Index>th element of the array to <Value>
//! OutOfRange exception is raised if <Index> doesn't respect Lower and Upper bounds of the internal array.
Standard_EXPORT void SetValue (const Standard_Integer Index, const Standard_Real Value);
//! Return the value of the <Index>th element of the array
Standard_EXPORT Standard_Real Value (const Standard_Integer Index) const;
Standard_Real operator () (const Standard_Integer Index) const
{
return Value(Index);
}
//! Returns the lower boundary of the array.
Standard_EXPORT Standard_Integer Lower() const;
//! Returns the upper boundary of the array.
Standard_EXPORT Standard_Integer Upper() const;
//! Returns the number of elements of the array of reals
//! in terms of the number of elements it contains.
Standard_EXPORT Standard_Integer Length() const;
//! Sets the inner array <myValue> of the RealArray attribute
//! to <newArray>. If value of <newArray> differs from <myValue>,
//! Backup performed and myValue refers to new instance of HArray1OfReal
//! that holds <newArray> values
//! If <isCheckItems> equal True each item of <newArray> will be checked with each
//! item of <myValue> for coincidence (to avoid backup).
Standard_EXPORT void ChangeArray (const Handle(TColStd_HArray1OfReal)& newArray, const Standard_Boolean isCheckItems = Standard_True);
//! Returns the handle of this array of reals.
const Handle(TColStd_HArray1OfReal) Array() const;
Standard_Boolean GetDelta() const;
//! for internal use only!
void SetDelta (const Standard_Boolean isDelta);
Standard_EXPORT TDataStd_RealArray();
Standard_EXPORT const Standard_GUID& ID() const;
Standard_EXPORT void Restore (const Handle(TDF_Attribute)& With);
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const;
//! Note. Uses inside ChangeArray() method
Standard_EXPORT void Paste (const Handle(TDF_Attribute)& Into, const Handle(TDF_RelocationTable)& RT) const;
Standard_EXPORT virtual Standard_OStream& Dump (Standard_OStream& anOS) const Standard_OVERRIDE;
//! Makes a DeltaOnModification between <me> and
//! <anOldAttribute>.
Standard_EXPORT virtual Handle(TDF_DeltaOnModification) DeltaOnModification (const Handle(TDF_Attribute)& anOldAttribute) const Standard_OVERRIDE;
friend class TDataStd_DeltaOnModificationOfRealArray;
DEFINE_STANDARD_RTTI(TDataStd_RealArray,TDF_Attribute)
protected:
private:
void RemoveArray();
Handle(TColStd_HArray1OfReal) myValue;
Standard_Boolean myIsDelta;
};
#include <TDataStd_RealArray.lxx>
#endif // _TDataStd_RealArray_HeaderFile

View File

@@ -0,0 +1,30 @@
// Created on: 1995-05-10
// Created by: Denis PASCAL
// Copyright (c) 1995-1999 Matra Datavision
// Copyright (c) 1999-2014 OPEN CASCADE SAS
//
// 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 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.
//
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#ifndef _TDataStd_RealEnum_HeaderFile
#define _TDataStd_RealEnum_HeaderFile
//! The terms of this enumeration define the
//! semantics of a real number value.
enum TDataStd_RealEnum
{
TDataStd_SCALAR,
TDataStd_LENGTH,
TDataStd_ANGULAR
};
#endif // _TDataStd_RealEnum_HeaderFile

View File

@@ -1,117 +0,0 @@
-- Created on: 2007-05-29
-- Created by: Vlad Romashko
-- Copyright (c) 2007-2014 OPEN CASCADE SAS
--
-- 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 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.
--
-- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement.
class RealList from TDataStd inherits Attribute from TDF
---Purpose: Contains a list of doubles.
uses
Attribute from TDF,
GUID from Standard,
Label from TDF,
RelocationTable from TDF,
ListOfReal from TColStd
is
---Purpose: Static methods
-- ==============
GetID (myclass)
---C++: return const &
---Purpose: Returns the ID of the list of doubles attribute.
returns GUID from Standard;
Set (myclass; label : Label from TDF)
---Purpose: Finds or creates a list of double values attribute.
returns RealList from TDataStd;
---Category: RealList methods
-- ===================
Create
returns RealList from TDataStd;
IsEmpty (me)
returns Boolean from Standard;
Extent (me)
returns Integer from Standard;
Prepend (me : mutable;
value : Real from Standard);
Append (me : mutable;
value : Real from Standard);
InsertBefore (me : mutable;
value : Real from Standard;
before_value : Real from Standard)
---Purpose: Inserts the <value> before the first meet of <before_value>.
returns Boolean from Standard;
InsertAfter (me : mutable;
value : Real from Standard;
after_value : Real from Standard)
---Purpose: Inserts the <value> after the first meet of <after_value>.
returns Boolean from Standard;
Remove (me : mutable;
value : Real from Standard)
---Purpose: Removes the first meet of the <value>.
returns Boolean from Standard;
Clear (me : mutable);
First (me)
returns Real from Standard;
Last (me)
returns Real from Standard;
List (me)
---C++: return const &
returns ListOfReal from TColStd;
---Category: Methodes of TDF_Attribute
-- =========================
ID (me)
---C++: return const &
returns GUID from Standard;
Restore (me: mutable; With : Attribute from TDF);
NewEmpty (me)
returns Attribute from TDF;
Paste (me; Into : Attribute from TDF;
RT : RelocationTable from TDF);
Dump(me; anOS : in out OStream from Standard)
returns OStream from Standard
is redefined;
---C++: return &
fields
myList : ListOfReal from TColStd;
end RealList;

Some files were not shown because too many files have changed in this diff Show More