owlps/owlps-positioner/tests/valuetraits.hh
Matteo Cypriani d5e2c975ae Rename Positioning -> Positioner
To be consistent with the other modules, the positioning server must be
called OwlPS Positioner instead of Positioning, and the executable
owlps-positionerd (even if the daemon mode is not implemented yet).
That's a big commit for a tiny change.
2012-02-06 17:48:43 +01:00

32 lines
433 B
C++

#include <cxxtest/ValueTraits.h>
#include <cstdio>
#include <string>
#include "point3d.hh"
namespace CxxTest
{
CXXTEST_TEMPLATE_INSTANTIATION
class ValueTraits<Point3D>
{
private:
char text_value[50] ;
public:
ValueTraits(const Point3D &source)
{
sprintf(text_value, "Point3D%s",
static_cast<std::string>(source).c_str()) ;
}
const char* asString(void) const
{
return text_value ;
}
} ;
} ;