7 #ifndef __datatool_test_xRecordView_h__ 8 #define __datatool_test_xRecordView_h__ 22 Functor< sp<Component> > myMethod;
24 MyRecordView(
void) { setName(
"MyRecordView"); }
25 virtual void addFunctors(
void)
29 add(myMethod,
"myMethod");
31 virtual void initializeRecord(
void)
35 myMethod()=Library::create<MyRecordView::Print>(
36 "MyRecordView::Print");
40 class MyRecordView::Print:
public HandlerI 43 void handle(
Record& rRecord)
45 m_myRecordView.bind(rRecord);
46 feLog(
"MyRecordView::Print::handle myF32=%.6G myI32=%d\n",
47 m_myRecordView.myF32(),
48 m_myRecordView.myI32());
49 m_myRecordView.bind(
Record());
52 MyRecordView m_myRecordView;
55 class MyDerivedView:
public MyRecordView
60 MyDerivedView(
void) { setName(
"MyDerivedView"); }
61 virtual void addFunctors(
void)
63 MyRecordView::addFunctors();
65 add(moreF32,
"moreF32");
67 virtual void initializeRecord(
void)
69 MyRecordView::initializeRecord();
76 #endif // __datatool_test_xRecordView_h__ Definition: SurfaceAccessibleAbc.cc:19
kernel
Definition: namespace.dox:3
Interface to handle signals from an SignalerI.
Definition: HandlerI.h:22
Bindable collection of accessor Functors.
Definition: RecordView.h:106
Reference to an instance of a Layout.
Definition: RecordSB.h:35