0026595: Lost some comments in OCCT-code after cdl elimination
[occt.git] / src / STEPCAFControl / STEPCAFControl_IteratorOfDictionaryOfExternFile.hxx
CommitLineData
42cf5bc1 1// Created on: 2000-04-09
2// Created by: Sergey MOZOKHIN
3// Copyright (c) 2000-2014 OPEN CASCADE SAS
4//
5// This file is part of Open CASCADE Technology software library.
6//
7// This library is free software; you can redistribute it and/or modify it under
8// the terms of the GNU Lesser General Public License version 2.1 as published
9// by the Free Software Foundation, with special exception defined in the file
10// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
11// distribution for complete text of the license and disclaimer of any warranty.
12//
13// Alternatively, this file may be used under the terms of Open CASCADE
14// commercial license or contractual agreement.
15
16#ifndef _STEPCAFControl_IteratorOfDictionaryOfExternFile_HeaderFile
17#define _STEPCAFControl_IteratorOfDictionaryOfExternFile_HeaderFile
18
19#include <Standard.hxx>
20#include <Standard_DefineAlloc.hxx>
21#include <Standard_Handle.hxx>
22
23#include <TCollection_AsciiString.hxx>
24#include <Standard_Integer.hxx>
25#include <Standard_Boolean.hxx>
26#include <Standard_CString.hxx>
27class STEPCAFControl_DictionaryOfExternFile;
28class STEPCAFControl_StackItemOfDictionaryOfExternFile;
29class Standard_NoSuchObject;
30class STEPCAFControl_ExternFile;
31class TCollection_AsciiString;
32
33
34
35class STEPCAFControl_IteratorOfDictionaryOfExternFile
36{
37public:
38
39 DEFINE_STANDARD_ALLOC
40
41
36b9ff75 42 //! Creates an iterator which will work on all the dictionary
42cf5bc1 43 Standard_EXPORT STEPCAFControl_IteratorOfDictionaryOfExternFile(const Handle(STEPCAFControl_DictionaryOfExternFile)& acell);
44
36b9ff75 45 //! Creates an iterator which will consider only entries
46 //! which name begin by the string given as basename (subpart)
42cf5bc1 47 Standard_EXPORT STEPCAFControl_IteratorOfDictionaryOfExternFile(const Handle(STEPCAFControl_DictionaryOfExternFile)& acell, const Standard_CString basename);
48
36b9ff75 49 //! Creates an iterator which will consider only entries
50 //! which name begin by the string given as basename (subpart)
51 //! Same as above, but basename is String instead of CString
42cf5bc1 52 Standard_EXPORT STEPCAFControl_IteratorOfDictionaryOfExternFile(const Handle(STEPCAFControl_DictionaryOfExternFile)& acell, const TCollection_AsciiString& basename);
53
36b9ff75 54 //! Allows to Start a new Iteration from beginning
42cf5bc1 55 Standard_EXPORT void Start();
56
36b9ff75 57 //! Returns True if there are more entries to return
42cf5bc1 58 Standard_EXPORT Standard_Boolean More();
59
36b9ff75 60 //! Go to the next entry
61 //! (if there is not, Value will raise an exception)
42cf5bc1 62 Standard_EXPORT void Next();
63
36b9ff75 64 //! Returns item value of current entry
42cf5bc1 65 Standard_EXPORT const Handle(STEPCAFControl_ExternFile)& Value() const;
66
36b9ff75 67 //! Returns name of current entry
42cf5bc1 68 Standard_EXPORT TCollection_AsciiString Name() const;
69
70
71
72
73protected:
74
75
76
77
78
79private:
80
81
36b9ff75 82 //! Appends a new value to the Iteration Stack
42cf5bc1 83 Standard_EXPORT void AppendStack (const Handle(STEPCAFControl_DictionaryOfExternFile)& val);
84
85
86 Handle(STEPCAFControl_DictionaryOfExternFile) thebase;
87 TCollection_AsciiString thename;
88 Handle(STEPCAFControl_StackItemOfDictionaryOfExternFile) thelast;
89 Standard_Integer thenb;
90 Standard_Boolean themore;
91 Standard_Boolean theinit;
92 Standard_Boolean thenext;
93
94
95};
96
97
98
99
100
101
102
103#endif // _STEPCAFControl_IteratorOfDictionaryOfExternFile_HeaderFile