00001
00002 #include <sstream>
00003 #include <inttypes.h>
00004
00005
00006 #include <dtUtil/log.h>
00007
00008 #include <controllers/innerSpace/Location3D.h>
00009
00010 namespace srAlmende
00011 {
00012
00016 Location3D::Location3D(int x, int y, int z) {
00017 this->x = x;
00018 this->y = y;
00019 this->z = z;
00020 std::ostringstream msg;
00021 msg.clear();
00022 msg.str("");
00023 msg << "Create location: " << toString();
00024 LOG_DEBUG(msg.str());
00025
00026 }
00027
00031 std::string Location3D::toString() {
00032 std::ostringstream msg;
00033 msg.clear();
00034 msg.str("");
00035 msg << "[" << this->x << "," << this->y << "," << this->z << "]";
00036 return msg.str().c_str();
00037 }
00038
00039 Location3D::~Location3D() { }
00040
00041 }