mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +03:00
0024788: Foundation Classes - remove Dico_Dictionary
Class Dico_Dictionary was replaced by NCollection_DataMap/NCollection_IndexedDataMap classes. Changed argument name in template class NCollection_Datamap to eliminate redefinitions of static members in dependent code.
This commit is contained in:
@@ -2,10 +2,6 @@ ShapeProcess.cxx
|
||||
ShapeProcess.hxx
|
||||
ShapeProcess_Context.cxx
|
||||
ShapeProcess_Context.hxx
|
||||
ShapeProcess_DictionaryOfOperator.hxx
|
||||
ShapeProcess_DictionaryOfOperator_0.cxx
|
||||
ShapeProcess_IteratorOfDictionaryOfOperator.hxx
|
||||
ShapeProcess_IteratorOfDictionaryOfOperator_0.cxx
|
||||
ShapeProcess_Operator.cxx
|
||||
ShapeProcess_Operator.hxx
|
||||
ShapeProcess_OperFunc.hxx
|
||||
@@ -13,7 +9,5 @@ ShapeProcess_OperLibrary.cxx
|
||||
ShapeProcess_OperLibrary.hxx
|
||||
ShapeProcess_ShapeContext.cxx
|
||||
ShapeProcess_ShapeContext.hxx
|
||||
ShapeProcess_StackItemOfDictionaryOfOperator.hxx
|
||||
ShapeProcess_StackItemOfDictionaryOfOperator_0.cxx
|
||||
ShapeProcess_UOperator.cxx
|
||||
ShapeProcess_UOperator.hxx
|
||||
|
@@ -13,20 +13,18 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
|
||||
#include <NCollection_DataMap.hxx>
|
||||
#include <Message_Messenger.hxx>
|
||||
#include <Message_Msg.hxx>
|
||||
#include <ShapeProcess.hxx>
|
||||
#include <ShapeProcess_Context.hxx>
|
||||
#include <ShapeProcess_DictionaryOfOperator.hxx>
|
||||
#include <ShapeProcess_Operator.hxx>
|
||||
#include <Standard_ErrorHandler.hxx>
|
||||
#include <Standard_Failure.hxx>
|
||||
#include <TCollection_AsciiString.hxx>
|
||||
#include <TColStd_SequenceOfAsciiString.hxx>
|
||||
|
||||
static Handle(ShapeProcess_DictionaryOfOperator) dic;
|
||||
|
||||
static NCollection_DataMap<TCollection_AsciiString, Handle(ShapeProcess_Operator)> aMapOfOperators;
|
||||
//=======================================================================
|
||||
//function : RegisterOperator
|
||||
//purpose :
|
||||
@@ -35,14 +33,13 @@ static Handle(ShapeProcess_DictionaryOfOperator) dic;
|
||||
Standard_Boolean ShapeProcess::RegisterOperator (const Standard_CString name,
|
||||
const Handle(ShapeProcess_Operator)& op)
|
||||
{
|
||||
if ( dic.IsNull() ) dic = new ShapeProcess_DictionaryOfOperator;
|
||||
if ( dic->HasItem ( name, Standard_True ) ) {
|
||||
if (aMapOfOperators.IsBound(name)) {
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Warning: operator with name " << name << " is already registered!" << endl;
|
||||
#endif
|
||||
return Standard_False;
|
||||
}
|
||||
dic->SetItem ( name, op );
|
||||
aMapOfOperators.Bind( name, op );
|
||||
return Standard_True;
|
||||
}
|
||||
|
||||
@@ -54,14 +51,13 @@ Standard_Boolean ShapeProcess::RegisterOperator (const Standard_CString name,
|
||||
Standard_Boolean ShapeProcess::FindOperator (const Standard_CString name,
|
||||
Handle(ShapeProcess_Operator)& op)
|
||||
{
|
||||
if ( dic.IsNull() ) dic = new ShapeProcess_DictionaryOfOperator;
|
||||
if ( ! dic->HasItem ( name, Standard_True ) ) {
|
||||
if (!aMapOfOperators.IsBound(name)) {
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Error: no operator with name " << name << " registered!" << endl;
|
||||
#endif
|
||||
return Standard_False;
|
||||
}
|
||||
op = dic->Item ( name );
|
||||
op = aMapOfOperators.ChangeFind(name);
|
||||
return !op.IsNull();
|
||||
}
|
||||
|
||||
|
@@ -29,10 +29,6 @@ class ShapeProcess_ShapeContext;
|
||||
class ShapeProcess_Operator;
|
||||
class ShapeProcess_UOperator;
|
||||
class ShapeProcess_OperLibrary;
|
||||
class ShapeProcess_DictionaryOfOperator;
|
||||
class ShapeProcess_IteratorOfDictionaryOfOperator;
|
||||
class ShapeProcess_StackItemOfDictionaryOfOperator;
|
||||
|
||||
|
||||
//! Shape Processing module
|
||||
//! allows to define and apply general Shape Processing as a
|
||||
@@ -77,9 +73,6 @@ friend class ShapeProcess_ShapeContext;
|
||||
friend class ShapeProcess_Operator;
|
||||
friend class ShapeProcess_UOperator;
|
||||
friend class ShapeProcess_OperLibrary;
|
||||
friend class ShapeProcess_DictionaryOfOperator;
|
||||
friend class ShapeProcess_IteratorOfDictionaryOfOperator;
|
||||
friend class ShapeProcess_StackItemOfDictionaryOfOperator;
|
||||
|
||||
};
|
||||
|
||||
|
@@ -1,209 +0,0 @@
|
||||
// Created on: 2000-08-21
|
||||
// Created by: Andrey BETENEV
|
||||
// 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 _ShapeProcess_DictionaryOfOperator_HeaderFile
|
||||
#define _ShapeProcess_DictionaryOfOperator_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
#include <Standard_Character.hxx>
|
||||
#include <MMgt_TShared.hxx>
|
||||
#include <Standard_Boolean.hxx>
|
||||
#include <Standard_CString.hxx>
|
||||
#include <Standard_Size.hxx>
|
||||
#include <Standard_Integer.hxx>
|
||||
class ShapeProcess_Operator;
|
||||
class Standard_NoSuchObject;
|
||||
class ShapeProcess_IteratorOfDictionaryOfOperator;
|
||||
class ShapeProcess_StackItemOfDictionaryOfOperator;
|
||||
class TCollection_AsciiString;
|
||||
|
||||
|
||||
class ShapeProcess_DictionaryOfOperator;
|
||||
DEFINE_STANDARD_HANDLE(ShapeProcess_DictionaryOfOperator, MMgt_TShared)
|
||||
|
||||
|
||||
class ShapeProcess_DictionaryOfOperator : public MMgt_TShared
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
|
||||
//! Creates a Dictionary cell.
|
||||
//! A Dictionary is always created then handled by its first cell
|
||||
//! After creating a Dictionary, user can call methods HasItem,
|
||||
//! Item, SetItem ... (internal cells and entries are also
|
||||
//! defined as objects from the same class)
|
||||
//! Also iteration can be made, by an Iterator on this Dictionary
|
||||
Standard_EXPORT ShapeProcess_DictionaryOfOperator();
|
||||
|
||||
//! Returns True if an Item is bound to a Name in the Dictionnary
|
||||
//! <exact> : if True, commands exact matching
|
||||
//! if False, accept completion, only if ONE AND ONLY ONE
|
||||
//! Dictionnary Entry has <name> as beginning of its name
|
||||
Standard_EXPORT Standard_Boolean HasItem (const Standard_CString name, const Standard_Boolean exact = Standard_False) const;
|
||||
|
||||
//! Works as above method but accepts a String from TCollection
|
||||
Standard_EXPORT Standard_Boolean HasItem (const TCollection_AsciiString& name, const Standard_Boolean exact = Standard_True) const;
|
||||
|
||||
//! Returns item bound to a name in the Dictionnary
|
||||
//! <exact> : same as for HasItem
|
||||
Standard_EXPORT const Handle(ShapeProcess_Operator)& Item (const Standard_CString name, const Standard_Boolean exact = Standard_True) const;
|
||||
|
||||
//! Works as above method but accepts a String from TCollection
|
||||
Standard_EXPORT const Handle(ShapeProcess_Operator)& Item (const TCollection_AsciiString& name, const Standard_Boolean exact = Standard_True) const;
|
||||
|
||||
//! Gathers HasItem and Item, in a less regular but faster way
|
||||
//! If return is True, <anitem> is returned too, else it is not
|
||||
//! <exact> : same as for HasItem
|
||||
Standard_EXPORT Standard_Boolean GetItem (const Standard_CString name, Handle(ShapeProcess_Operator)& anitem, const Standard_Boolean exact = Standard_True) const;
|
||||
|
||||
//! Works as above method but accepts a String from TCollection
|
||||
Standard_EXPORT Standard_Boolean GetItem (const TCollection_AsciiString& name, Handle(ShapeProcess_Operator)& anitem, const Standard_Boolean exact = Standard_True) const;
|
||||
|
||||
//! Binds an item to a dictionnary entry
|
||||
//! If <name> is already known in the dictionary, its value
|
||||
//! is changed. Else, the dictionary entry is created.
|
||||
//! If <exact> is given False, completion is tried, it is accepted
|
||||
//! If it gives a UNIQUE entry : hence this one will be modified
|
||||
//! Else, new entry is created with the exact name given
|
||||
Standard_EXPORT void SetItem (const Standard_CString name, const Handle(ShapeProcess_Operator)& anitem, const Standard_Boolean exact = Standard_True);
|
||||
|
||||
//! Works as above method but accepts a String from TCollection
|
||||
Standard_EXPORT void SetItem (const TCollection_AsciiString& name, const Handle(ShapeProcess_Operator)& anitem, const Standard_Boolean exact = Standard_True);
|
||||
|
||||
//! Returns the Item AS AN ADDRESS which corresponds to a Name,
|
||||
//! in order to be changed or set.
|
||||
//! If this name is not yet recorded, the Dictionary creates it.
|
||||
//! <isvalued> is returned True if the Item is recorded in the
|
||||
//! Dictionary, False else, in that case the Item is reserved and
|
||||
//! the name is noted as beeing valued now.
|
||||
Standard_EXPORT Handle(ShapeProcess_Operator)& NewItem (const Standard_CString name, Standard_Boolean& isvalued, const Standard_Boolean exact = Standard_True);
|
||||
|
||||
//! Works as above method but accepts a String from TCollection
|
||||
Standard_EXPORT Handle(ShapeProcess_Operator)& NewItem (const TCollection_AsciiString& name, Standard_Boolean& isvalued, const Standard_Boolean exact = Standard_True);
|
||||
|
||||
//! Removes a dictionary entry given by its name then Returns True
|
||||
//! If the entry does not exists, Does nothing then Returns False
|
||||
//! <exact> : as for HasItem, if completion works, the found entry
|
||||
//! is removed (else returned value is False)
|
||||
//! <cln> commands cleaning dictionary (to recover memory space)
|
||||
//! For an isolated call, it is recommanded to give it at True
|
||||
//! For a sequence of calls, rather give False, then call Clean
|
||||
Standard_EXPORT Standard_Boolean RemoveItem (const Standard_CString name, const Standard_Boolean cln = Standard_True, const Standard_Boolean exact = Standard_True);
|
||||
|
||||
//! Works as above method but accepts a String from TCollection
|
||||
Standard_EXPORT Standard_Boolean RemoveItem (const TCollection_AsciiString& name, const Standard_Boolean cln = Standard_True, const Standard_Boolean exact = Standard_True);
|
||||
|
||||
//! Deletes physically in one step the entries which were removed
|
||||
//! (can be used for a more efficient Memory Management : first
|
||||
//! Remove several Items (<cln> = False), then Clean the Memory)
|
||||
Standard_EXPORT void Clean();
|
||||
|
||||
//! Returns True if no Item is recorded
|
||||
Standard_EXPORT Standard_Boolean IsEmpty() const;
|
||||
|
||||
//! Clears all the Dictionary : all recorded Items are removed
|
||||
Standard_EXPORT void Clear();
|
||||
|
||||
//! Copies the Dictionary as a Tree, without Copying the Items
|
||||
Standard_EXPORT Handle(ShapeProcess_DictionaryOfOperator) Copy() const;
|
||||
|
||||
//! Internal routine used for completion (returns True if success)
|
||||
Standard_EXPORT Standard_Boolean Complete (Handle(ShapeProcess_DictionaryOfOperator)& acell) const;
|
||||
|
||||
|
||||
friend class ShapeProcess_IteratorOfDictionaryOfOperator;
|
||||
|
||||
|
||||
DEFINE_STANDARD_RTTI_INLINE(ShapeProcess_DictionaryOfOperator,MMgt_TShared)
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
//! Defines cell's character (internal use, to build dict. tree)
|
||||
Standard_EXPORT void SetChar (const Standard_Character car);
|
||||
|
||||
//! Returns True if this cell has a subcell
|
||||
Standard_EXPORT Standard_Boolean HasSub() const;
|
||||
|
||||
//! Returns subcell
|
||||
Standard_EXPORT Handle(ShapeProcess_DictionaryOfOperator) Sub() const;
|
||||
|
||||
//! Returns True if this cell has a next cell
|
||||
Standard_EXPORT Standard_Boolean HasNext() const;
|
||||
|
||||
//! Returns next cell
|
||||
Standard_EXPORT Handle(ShapeProcess_DictionaryOfOperator) Next() const;
|
||||
|
||||
//! Defines subcell
|
||||
Standard_EXPORT void SetSub (const Handle(ShapeProcess_DictionaryOfOperator)& acell);
|
||||
|
||||
//! Defines next cell
|
||||
Standard_EXPORT void SetNext (const Handle(ShapeProcess_DictionaryOfOperator)& acell);
|
||||
|
||||
//! Internal method used to get an entry from a given name
|
||||
Standard_EXPORT void SearchCell (const Standard_CString name, const Standard_Size lmax, const Standard_Character car, const Standard_Size level, Handle(ShapeProcess_DictionaryOfOperator)& acell, Standard_Size& reslev, Standard_Integer& stat) const;
|
||||
|
||||
//! Internal method used to create a new entry for a name
|
||||
Standard_EXPORT void NewCell (const Standard_CString name, const Standard_Size namlen, Handle(ShapeProcess_DictionaryOfOperator)& acell, const Standard_Size reslev, const Standard_Integer stat);
|
||||
|
||||
//! Returns True if a cell has an associated item value
|
||||
Standard_EXPORT Standard_Boolean HasIt() const;
|
||||
|
||||
//! Returns item value associated to a cell
|
||||
Standard_EXPORT const Handle(ShapeProcess_Operator)& It() const;
|
||||
|
||||
//! Returns item address associated to a cell
|
||||
Standard_EXPORT Handle(ShapeProcess_Operator)& ItAdr();
|
||||
|
||||
//! Binds an item value to a cell
|
||||
Standard_EXPORT void SetIt (const Handle(ShapeProcess_Operator)& anitem);
|
||||
|
||||
//! Declares a cell as Valued : used by NewItem (when an Item
|
||||
//! is created if it did not exist and is returned)
|
||||
Standard_EXPORT void DeclIt();
|
||||
|
||||
//! Removes item bound to a cell (cancels effect of DeclIt)
|
||||
Standard_EXPORT void RemoveIt();
|
||||
|
||||
//! Returns cell's character as a node feature
|
||||
Standard_EXPORT Standard_Character CellChar() const;
|
||||
|
||||
//! Performs Copy from an original <fromcell> to <me>
|
||||
//! Called by Copy
|
||||
Standard_EXPORT void GetCopied (const Handle(ShapeProcess_DictionaryOfOperator)& fromcell);
|
||||
|
||||
Standard_Character thecars[4];
|
||||
Handle(ShapeProcess_DictionaryOfOperator) thesub;
|
||||
Handle(ShapeProcess_DictionaryOfOperator) thenext;
|
||||
Handle(ShapeProcess_Operator) theitem;
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _ShapeProcess_DictionaryOfOperator_HeaderFile
|
@@ -1,47 +0,0 @@
|
||||
// Created on: 2000-08-21
|
||||
// Created by: Andrey BETENEV
|
||||
// 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.
|
||||
|
||||
#include <ShapeProcess_DictionaryOfOperator.hxx>
|
||||
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
#include <ShapeProcess_DictionaryOfOperator.hxx>
|
||||
#include <ShapeProcess_Operator.hxx>
|
||||
#include <Standard_NoSuchObject.hxx>
|
||||
#include <ShapeProcess_IteratorOfDictionaryOfOperator.hxx>
|
||||
#include <ShapeProcess_StackItemOfDictionaryOfOperator.hxx>
|
||||
#include <TCollection_AsciiString.hxx>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#define TheItem Handle(ShapeProcess_Operator)
|
||||
#define TheItem_hxx <ShapeProcess_Operator.hxx>
|
||||
#define Dico_Iterator ShapeProcess_IteratorOfDictionaryOfOperator
|
||||
#define Dico_Iterator_hxx <ShapeProcess_IteratorOfDictionaryOfOperator.hxx>
|
||||
#define Dico_StackItem ShapeProcess_StackItemOfDictionaryOfOperator
|
||||
#define Dico_StackItem_hxx <ShapeProcess_StackItemOfDictionaryOfOperator.hxx>
|
||||
#define Handle_Dico_StackItem Handle(ShapeProcess_StackItemOfDictionaryOfOperator)
|
||||
#define Dico_Dictionary ShapeProcess_DictionaryOfOperator
|
||||
#define Dico_Dictionary_hxx <ShapeProcess_DictionaryOfOperator.hxx>
|
||||
#define Handle_Dico_Dictionary Handle(ShapeProcess_DictionaryOfOperator)
|
||||
#include <Dico_Dictionary.gxx>
|
||||
|
@@ -1,103 +0,0 @@
|
||||
// Created on: 2000-08-21
|
||||
// Created by: Andrey BETENEV
|
||||
// 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 _ShapeProcess_IteratorOfDictionaryOfOperator_HeaderFile
|
||||
#define _ShapeProcess_IteratorOfDictionaryOfOperator_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_DefineAlloc.hxx>
|
||||
#include <Standard_Handle.hxx>
|
||||
|
||||
#include <TCollection_AsciiString.hxx>
|
||||
#include <Standard_Integer.hxx>
|
||||
#include <Standard_Boolean.hxx>
|
||||
#include <Standard_CString.hxx>
|
||||
class ShapeProcess_DictionaryOfOperator;
|
||||
class ShapeProcess_StackItemOfDictionaryOfOperator;
|
||||
class Standard_NoSuchObject;
|
||||
class ShapeProcess_Operator;
|
||||
class TCollection_AsciiString;
|
||||
|
||||
|
||||
|
||||
class ShapeProcess_IteratorOfDictionaryOfOperator
|
||||
{
|
||||
public:
|
||||
|
||||
DEFINE_STANDARD_ALLOC
|
||||
|
||||
|
||||
//! Creates an iterator which will work on all the dictionary
|
||||
Standard_EXPORT ShapeProcess_IteratorOfDictionaryOfOperator(const Handle(ShapeProcess_DictionaryOfOperator)& acell);
|
||||
|
||||
//! Creates an iterator which will consider only entries
|
||||
//! which name begin by the string given as basename (subpart)
|
||||
Standard_EXPORT ShapeProcess_IteratorOfDictionaryOfOperator(const Handle(ShapeProcess_DictionaryOfOperator)& acell, const Standard_CString basename);
|
||||
|
||||
//! Creates an iterator which will consider only entries
|
||||
//! which name begin by the string given as basename (subpart)
|
||||
//! Same as above, but basename is String instead of CString
|
||||
Standard_EXPORT ShapeProcess_IteratorOfDictionaryOfOperator(const Handle(ShapeProcess_DictionaryOfOperator)& acell, const TCollection_AsciiString& basename);
|
||||
|
||||
//! Allows to Start a new Iteration from beginning
|
||||
Standard_EXPORT void Start();
|
||||
|
||||
//! Returns True if there are more entries to return
|
||||
Standard_EXPORT Standard_Boolean More();
|
||||
|
||||
//! Go to the next entry
|
||||
//! (if there is not, Value will raise an exception)
|
||||
Standard_EXPORT void Next();
|
||||
|
||||
//! Returns item value of current entry
|
||||
Standard_EXPORT const Handle(ShapeProcess_Operator)& Value() const;
|
||||
|
||||
//! Returns name of current entry
|
||||
Standard_EXPORT TCollection_AsciiString Name() const;
|
||||
|
||||
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
//! Appends a new value to the Iteration Stack
|
||||
Standard_EXPORT void AppendStack (const Handle(ShapeProcess_DictionaryOfOperator)& val);
|
||||
|
||||
|
||||
Handle(ShapeProcess_DictionaryOfOperator) thebase;
|
||||
TCollection_AsciiString thename;
|
||||
Handle(ShapeProcess_StackItemOfDictionaryOfOperator) thelast;
|
||||
Standard_Integer thenb;
|
||||
Standard_Boolean themore;
|
||||
Standard_Boolean theinit;
|
||||
Standard_Boolean thenext;
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _ShapeProcess_IteratorOfDictionaryOfOperator_HeaderFile
|
@@ -1,36 +0,0 @@
|
||||
// Created on: 2000-08-21
|
||||
// Created by: Andrey BETENEV
|
||||
// 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.
|
||||
|
||||
#include <ShapeProcess_IteratorOfDictionaryOfOperator.hxx>
|
||||
|
||||
#include <ShapeProcess_DictionaryOfOperator.hxx>
|
||||
#include <ShapeProcess_StackItemOfDictionaryOfOperator.hxx>
|
||||
#include <Standard_NoSuchObject.hxx>
|
||||
#include <ShapeProcess_Operator.hxx>
|
||||
#include <TCollection_AsciiString.hxx>
|
||||
|
||||
|
||||
#define TheItem Handle(ShapeProcess_Operator)
|
||||
#define TheItem_hxx <ShapeProcess_Operator.hxx>
|
||||
#define Dico_Iterator ShapeProcess_IteratorOfDictionaryOfOperator
|
||||
#define Dico_Iterator_hxx <ShapeProcess_IteratorOfDictionaryOfOperator.hxx>
|
||||
#define Dico_StackItem ShapeProcess_StackItemOfDictionaryOfOperator
|
||||
#define Dico_StackItem_hxx <ShapeProcess_StackItemOfDictionaryOfOperator.hxx>
|
||||
#define Handle_Dico_StackItem Handle(ShapeProcess_StackItemOfDictionaryOfOperator)
|
||||
#define Dico_Dictionary ShapeProcess_DictionaryOfOperator
|
||||
#define Dico_Dictionary_hxx <ShapeProcess_DictionaryOfOperator.hxx>
|
||||
#define Handle_Dico_Dictionary Handle(ShapeProcess_DictionaryOfOperator)
|
||||
#include <Dico_Iterator.gxx>
|
||||
|
@@ -1,78 +0,0 @@
|
||||
// Created on: 2000-08-21
|
||||
// Created by: Andrey BETENEV
|
||||
// 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 _ShapeProcess_StackItemOfDictionaryOfOperator_HeaderFile
|
||||
#define _ShapeProcess_StackItemOfDictionaryOfOperator_HeaderFile
|
||||
|
||||
#include <Standard.hxx>
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
#include <MMgt_TShared.hxx>
|
||||
class ShapeProcess_DictionaryOfOperator;
|
||||
class ShapeProcess_Operator;
|
||||
class ShapeProcess_IteratorOfDictionaryOfOperator;
|
||||
|
||||
|
||||
class ShapeProcess_StackItemOfDictionaryOfOperator;
|
||||
DEFINE_STANDARD_HANDLE(ShapeProcess_StackItemOfDictionaryOfOperator, MMgt_TShared)
|
||||
|
||||
|
||||
class ShapeProcess_StackItemOfDictionaryOfOperator : public MMgt_TShared
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
|
||||
//! Creates a StackItem with no Previous one
|
||||
Standard_EXPORT ShapeProcess_StackItemOfDictionaryOfOperator();
|
||||
|
||||
//! Creates a StackItem with a Previous one
|
||||
Standard_EXPORT ShapeProcess_StackItemOfDictionaryOfOperator(const Handle(ShapeProcess_StackItemOfDictionaryOfOperator)& previous);
|
||||
|
||||
//! Returns the Previous Item (is Null if no Previous defined)
|
||||
Standard_EXPORT Handle(ShapeProcess_StackItemOfDictionaryOfOperator) Previous() const;
|
||||
|
||||
//! Returns the Dictionary Cell corresponding to an Item
|
||||
Standard_EXPORT Handle(ShapeProcess_DictionaryOfOperator) Value() const;
|
||||
|
||||
//! Sets a new Dictionary Cell as Value of an Item
|
||||
Standard_EXPORT void SetValue (const Handle(ShapeProcess_DictionaryOfOperator)& cval);
|
||||
|
||||
|
||||
|
||||
|
||||
DEFINE_STANDARD_RTTI_INLINE(ShapeProcess_StackItemOfDictionaryOfOperator,MMgt_TShared)
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
Handle(ShapeProcess_DictionaryOfOperator) thevalue;
|
||||
Handle(ShapeProcess_StackItemOfDictionaryOfOperator) theprev;
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif // _ShapeProcess_StackItemOfDictionaryOfOperator_HeaderFile
|
@@ -1,45 +0,0 @@
|
||||
// Created on: 2000-08-21
|
||||
// Created by: Andrey BETENEV
|
||||
// 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.
|
||||
|
||||
#include <ShapeProcess_StackItemOfDictionaryOfOperator.hxx>
|
||||
|
||||
#include <Standard_Type.hxx>
|
||||
|
||||
#include <ShapeProcess_DictionaryOfOperator.hxx>
|
||||
#include <ShapeProcess_StackItemOfDictionaryOfOperator.hxx>
|
||||
#include <ShapeProcess_Operator.hxx>
|
||||
#include <ShapeProcess_IteratorOfDictionaryOfOperator.hxx>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#define TheItem Handle(ShapeProcess_Operator)
|
||||
#define TheItem_hxx <ShapeProcess_Operator.hxx>
|
||||
#define Dico_Iterator ShapeProcess_IteratorOfDictionaryOfOperator
|
||||
#define Dico_Iterator_hxx <ShapeProcess_IteratorOfDictionaryOfOperator.hxx>
|
||||
#define Dico_StackItem ShapeProcess_StackItemOfDictionaryOfOperator
|
||||
#define Dico_StackItem_hxx <ShapeProcess_StackItemOfDictionaryOfOperator.hxx>
|
||||
#define Handle_Dico_StackItem Handle(ShapeProcess_StackItemOfDictionaryOfOperator)
|
||||
#define Dico_Dictionary ShapeProcess_DictionaryOfOperator
|
||||
#define Dico_Dictionary_hxx <ShapeProcess_DictionaryOfOperator.hxx>
|
||||
#define Handle_Dico_Dictionary Handle(ShapeProcess_DictionaryOfOperator)
|
||||
#include <Dico_StackItem.gxx>
|
||||
|
Reference in New Issue
Block a user