7fd59977 |
1 | // File: DDF_AttributeBrowser.hxx |
2 | // ------------------------ |
3 | // Author: DAUTRY Philippe |
4 | // <fid@fox.paris1.matra-dtv.fr> |
5 | // Copyright: Matra Datavision 1997 |
6 | |
7 | // Version: 0.0 |
8 | // History: Version Date Purpose |
9 | // 0.0 Oct 6 1997 Creation |
10 | |
11 | |
12 | |
13 | #ifndef DDF_AttributeBrowser_HeaderFile |
14 | #define DDF_AttributeBrowser_HeaderFile |
15 | |
16 | #include <Standard_Boolean.hxx> |
17 | #include <TCollection_AsciiString.hxx> |
18 | #include <TDF_Attribute.hxx> |
19 | |
20 | class DDF_AttributeBrowser { |
21 | |
22 | public : |
23 | |
24 | Standard_EXPORT DDF_AttributeBrowser |
25 | (Standard_Boolean (*test)(const Handle(TDF_Attribute)&), |
26 | TCollection_AsciiString (*open) (const Handle(TDF_Attribute)&), |
27 | TCollection_AsciiString (*text) (const Handle(TDF_Attribute)&) |
28 | ); |
29 | |
30 | |
31 | Standard_Boolean Test |
32 | (const Handle(TDF_Attribute)&anAtt) const; |
33 | TCollection_AsciiString Open |
34 | (const Handle(TDF_Attribute)&anAtt) const; |
35 | TCollection_AsciiString Text |
36 | (const Handle(TDF_Attribute)&anAtt) const; |
37 | inline DDF_AttributeBrowser* Next() {return myNext;} |
38 | |
39 | static DDF_AttributeBrowser* FindBrowser |
40 | (const Handle(TDF_Attribute)&anAtt); |
41 | |
42 | private : |
43 | |
44 | Standard_Boolean (*myTest) |
45 | (const Handle(TDF_Attribute)&); |
46 | |
47 | TCollection_AsciiString (*myOpen) |
48 | (const Handle(TDF_Attribute)&); |
49 | |
50 | TCollection_AsciiString (*myText) |
51 | (const Handle(TDF_Attribute)&); |
52 | |
53 | DDF_AttributeBrowser* myNext; |
54 | |
55 | }; |
56 | |
57 | #endif |