38 WhiteBoardSvc *
const result
39 =
dynamic_cast<WhiteBoardSvc*
>(worker->getAlg (
"WhiteBoardSvc"));
47 testInvariant ()
const
63 hasVar (
const std::string& name)
const
66 return doHasVar (name);
71 float WhiteBoardSvc ::
72 getFloat (
const std::string& name)
const
75 return doGetFloat (name);
81 getArray (
const std::string& name, std::size_t& size,
82 const float*& values)
const
85 std::size_t tmpSize = 0;
86 const float *tmpValues = 0;
87 doGetArray (name, tmpSize, tmpValues);
94 TObject *WhiteBoardSvc ::
95 getTObject (
const std::string& name)
const
98 TObject *
result = doGetTObject (name);
105 void WhiteBoardSvc ::
106 setFloat (
const std::string& name,
float value)
109 doSetFloat (name, value);
114 void WhiteBoardSvc ::
115 setArray (
const std::string& name,
const std::vector<float>& value)
118 doSetArray (name, value.size(), &value[0]);
123 void WhiteBoardSvc ::
124 setArray (
const std::string& name, std::size_t size,
const float *values)
127 doSetArray (name, size, values);
132 void WhiteBoardSvc ::
133 setTObject (TObject *
object,
bool swallow)
136 doSetTObject (
object, swallow);
141 const char *WhiteBoardSvc ::
145 return "WhiteBoardSvc";
150 bool WhiteBoardSvc ::
151 doHasVar (
const std::string& )
const
159 float WhiteBoardSvc ::
160 doGetFloat (
const std::string& name)
const
164 TObject *
const object = getTObject (name);
174 void WhiteBoardSvc ::
175 doGetArray (
const std::string& name, std::size_t& size,
176 const float*& values)
const
180 TObject *
const object = getTObject (name);
185 size =
meta->value.size();
186 values = &
meta->value[0];
191 TObject *WhiteBoardSvc ::
192 doGetTObject (
const std::string& )
const
200 void WhiteBoardSvc ::
201 doSetFloat (
const std::string& name,
float value)
206 meta->SetName (name.c_str());
208 setTObject (
meta.release(),
true);
213 void WhiteBoardSvc ::
214 doSetArray (
const std::string& name, std::size_t size,
const float *values)
219 meta->SetName (name.c_str());
220 std::vector<float> (values, values+size).swap (
meta->value);
221 setTObject (
meta.release(),
true);
226 void WhiteBoardSvc ::
227 doSetTObject (TObject *
object,
bool swallow)