25 m_a_MyF32.
setup(spScope,
"MyF32");
26 m_accessors.push_back(m_a_MyF32);
27 m_a_blat.
setup(spScope,
"blat");
28 m_accessors.push_back(m_a_blat);
36 feX(
"invalid record");
38 return m_a_MyF32(m_record);
46 feX(
"invalid record");
48 return m_a_MyF32(a_record);
55 feX(
"invalid record");
57 return m_a_blat(m_record);
64 feX(
"invalid record");
66 return m_a_blat(a_record);
73 class thingView :
public View 78 m_a_blob.setup(spScope,
"blob");
79 m_accessors.push_back(m_a_blob);
83 if(!m_record.isValid())
85 feX(
"invalid record");
87 return m_a_blob(m_record);
89 int &blob(
Record &a_record)
93 feX(
"invalid record");
95 return m_a_blob(a_record);
101 class appdataView :
public View 104 static const int ms_run = 1;
105 static const int ms_pause = 2;
108 m_a_runlevel.setup(spScope,
"runlevel");
109 m_accessors.push_back(m_a_runlevel);
113 if(!m_record.isValid())
115 feX(
"invalid record");
117 return m_a_runlevel(m_record);
119 int &runlevel(
Record &a_record)
123 feX(
"invalid record");
125 return m_a_runlevel(a_record);
132 class particleView :
public View 137 m_a_mass.setup(spScope,
"mass");
138 m_accessors.push_back(m_a_mass);
139 m_a_location.setup(spScope,
"location");
140 m_accessors.push_back(m_a_location);
144 if(!m_record.isValid())
146 feX(
"invalid record");
148 return m_a_mass(m_record);
150 float &mass(
Record &a_record)
154 feX(
"invalid record");
156 return m_a_mass(a_record);
160 if(!m_record.isValid())
162 feX(
"invalid record");
164 return m_a_location(m_record);
170 feX(
"invalid record");
172 return m_a_location(a_record);
Base class for generated views.
Definition: View.h:17
int & blat(void)
another
Definition: MyView.h:51
F32 & MyF32(void)
test accesor test accesor
Definition: MyView.h:32
bool isValid(void) const
Return true if the Record points to a valid state block.
Definition: RecordSB.h:184
kernel
Definition: namespace.dox:3
int & blat(Record &a_record)
another
Definition: MyView.h:60
test view specification
Definition: MyView.h:20
Reference to an instance of a Layout.
Definition: RecordSB.h:35
F32 & MyF32(Record &a_record)
test accesor test accesor
Definition: MyView.h:42
void setup(sp< Scope > spScope, const String &attribute)
setup functions setup the accessor and also setup the Scope.
Definition: Accessor.cc:113