[TD]Add uuid tags for cosmetics

This commit is contained in:
wandererfan
2019-07-22 11:48:40 -04:00
committed by WandererFan
parent 0f714e00f1
commit b5464ccf4d
11 changed files with 236 additions and 35 deletions

View File

@@ -24,7 +24,7 @@
#include "PreCompiled.h"
#ifndef _PreComp_
//# include <boost/uuid/uuid_io.hpp>
# include <boost/uuid/uuid_io.hpp>
#endif
#include "DrawUtil.h"
@@ -167,6 +167,12 @@ PyObject* CenterLinePy::getFormat(PyObject *args)
return result;
}
Py::String CenterLinePy::getTag(void) const
{
std::string tmp = boost::uuids::to_string(getCenterLinePtr()->getTag());
return Py::String(tmp);
}
PyObject *CenterLinePy::getCustomAttributes(const char* /*attr*/) const
{
return 0;