1 // Created by: DAUTRY Philippe
2 // Copyright (c) 1997-1999 Matra Datavision
3 // Copyright (c) 1999-2012 OPEN CASCADE SAS
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.
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.
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.
20 // ------------------------
23 //Version Date Purpose
24 // 0.0 Oct 6 1997 Creation
28 #ifndef DDF_AttributeBrowser_HeaderFile
29 #define DDF_AttributeBrowser_HeaderFile
31 #include <Standard_Boolean.hxx>
32 #include <TCollection_AsciiString.hxx>
33 #include <TDF_Attribute.hxx>
35 class DDF_AttributeBrowser {
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)&)
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;}
54 static DDF_AttributeBrowser* FindBrowser
55 (const Handle(TDF_Attribute)&anAtt);
59 Standard_Boolean (*myTest)
60 (const Handle(TDF_Attribute)&);
62 TCollection_AsciiString (*myOpen)
63 (const Handle(TDF_Attribute)&);
65 TCollection_AsciiString (*myText)
66 (const Handle(TDF_Attribute)&);
68 DDF_AttributeBrowser* myNext;