31 WhiteBoardSvc *
const result
32 =
dynamic_cast<WhiteBoardSvc*
>(worker->getAlg (
"WhiteBoardSvc"));
40 testInvariant ()
const
56 hasVar (
const std::string& name)
const
59 return doHasVar (name);
64 float WhiteBoardSvc ::
65 getFloat (
const std::string& name)
const
68 return doGetFloat (name);
74 getArray (
const std::string& name, std::size_t&
size,
75 const float*& values)
const
78 std::size_t tmpSize = 0;
79 const float *tmpValues = 0;
80 doGetArray (name, tmpSize, tmpValues);
87 TObject *WhiteBoardSvc ::
88 getTObject (
const std::string& name)
const
91 TObject *result = doGetTObject (name);
99 setFloat (
const std::string& name,
float value)
102 doSetFloat (name, value);
107 void WhiteBoardSvc ::
108 setArray (
const std::string& name,
const std::vector<float>& value)
111 doSetArray (name, value.size(), &value[0]);
116 void WhiteBoardSvc ::
117 setArray (
const std::string& name, std::size_t
size,
const float *values)
120 doSetArray (name,
size, values);
125 void WhiteBoardSvc ::
126 setTObject (TObject *
object,
bool swallow)
129 doSetTObject (
object, swallow);
134 const char *WhiteBoardSvc ::
138 return "WhiteBoardSvc";
143 bool WhiteBoardSvc ::
144 doHasVar (
const std::string& )
const
152 float WhiteBoardSvc ::
153 doGetFloat (
const std::string& name)
const
157 TObject *
const object = getTObject (name);
167 void WhiteBoardSvc ::
168 doGetArray (
const std::string& name, std::size_t&
size,
169 const float*& values)
const
173 TObject *
const object = getTObject (name);
179 values = &
meta->value[0];
184 TObject *WhiteBoardSvc ::
185 doGetTObject (
const std::string& )
const
193 void WhiteBoardSvc ::
194 doSetFloat (
const std::string& name,
float value)
199 meta->SetName (name.c_str());
201 setTObject (
meta.release(),
true);
206 void WhiteBoardSvc ::
207 doSetArray (
const std::string& name, std::size_t
size,
const float *values)
212 meta->SetName (name.c_str());
213 std::vector<float> (values, values+
size).swap (
meta->value);
214 setTObject (
meta.release(),
true);
219 void WhiteBoardSvc ::
220 doSetTObject (TObject *
object,
bool swallow)