0024234: occt master is not compiled by VC++ 2005 (vc8 32/64 bit TKBO)
[occt.git] / src / DDF / DDF_AttributeBrowser.hxx
... / ...
CommitLineData
1// Created by: DAUTRY Philippe
2// Copyright (c) 1997-1999 Matra Datavision
3// Copyright (c) 1999-2012 OPEN CASCADE SAS
4//
5// The content of this file is subject to the Open CASCADE Technology Public
6// License Version 6.5 (the "License"). You may not use the content of this file
7// except in compliance with the License. Please obtain a copy of the License
8// at http://www.opencascade.org and read it completely before using this file.
9//
10// The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
11// main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
12//
13// The Original Code and all software distributed under the License is
14// distributed on an "AS IS" basis, without warranty of any kind, and the
15// Initial Developer hereby disclaims all such warranties, including without
16// limitation, any warranties of merchantability, fitness for a particular
17// purpose or non-infringement. Please see the License for the specific terms
18// and conditions governing the rights and limitations under the License.
19
20// ------------------------
21
22// Version: 0.0
23//Version Date Purpose
24// 0.0 Oct 6 1997 Creation
25
26
27
28#ifndef DDF_AttributeBrowser_HeaderFile
29#define DDF_AttributeBrowser_HeaderFile
30
31#include <Standard_Boolean.hxx>
32#include <TCollection_AsciiString.hxx>
33#include <TDF_Attribute.hxx>
34
35class DDF_AttributeBrowser {
36
37 public :
38
39 Standard_EXPORT DDF_AttributeBrowser
40 (Standard_Boolean (*test)(const Handle(TDF_Attribute)&),
41 TCollection_AsciiString (*open) (const Handle(TDF_Attribute)&),
42 TCollection_AsciiString (*text) (const Handle(TDF_Attribute)&)
43 );
44
45
46 Standard_Boolean Test
47 (const Handle(TDF_Attribute)&anAtt) const;
48 TCollection_AsciiString Open
49 (const Handle(TDF_Attribute)&anAtt) const;
50 TCollection_AsciiString Text
51 (const Handle(TDF_Attribute)&anAtt) const;
52 inline DDF_AttributeBrowser* Next() {return myNext;}
53
54 static DDF_AttributeBrowser* FindBrowser
55 (const Handle(TDF_Attribute)&anAtt);
56
57 private :
58
59 Standard_Boolean (*myTest)
60 (const Handle(TDF_Attribute)&);
61
62 TCollection_AsciiString (*myOpen)
63 (const Handle(TDF_Attribute)&);
64
65 TCollection_AsciiString (*myText)
66 (const Handle(TDF_Attribute)&);
67
68 DDF_AttributeBrowser* myNext;
69
70};
71
72#endif