-
Notifications
You must be signed in to change notification settings - Fork 0
/
FakeOccDemoApi.hxx
33 lines (26 loc) · 1.03 KB
/
FakeOccDemoApi.hxx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#include <iostream>
#include "Standard_Transient.hxx"
#include "Standard_Handle.hxx"
class Example_Base;
DEFINE_STANDARD_HANDLE(Example_Base,Standard_Transient)
class Example_Base : public Standard_Transient {
DEFINE_STANDARD_RTTI_INLINE(Example_Base,Standard_Transient)
public:
virtual Handle(Example_Base) foobar(Handle(Example_Base) p) {
return 0;
};
};
class Example_Derived;
DEFINE_STANDARD_HANDLE(Example_Derived,Example_Base)
opencascade::handle<Example_Base> someFoo(Handle(Example_Base) p) {return p;};
class Example_Derived : public Example_Base {
DEFINE_STANDARD_RTTI_INLINE(Example_Derived,Example_Base)
public:
virtual Handle(Example_Base) foobar(Handle(Example_Base) p) override {
return someFoo(p);
};
void barfoo(Handle(Example_Base) p) {
};
private:
Handle(Example_Base) member; // not used
};