tahoma2d/toonz/sources/common/tcore/tdata.cpp

20 lines
435 B
C++
Raw Normal View History

2016-03-19 06:57:51 +13:00
#include "tdata.h"
#include "tconvert.h"
DEFINE_CLASS_CODE(TData, 16)
2016-06-15 18:43:10 +12:00
TTextData::TTextData(std::string text) : m_text(::to_wstring(text)) {}
2016-03-19 06:57:51 +13:00
2016-06-15 18:43:10 +12:00
TDataP TTextData::clone() const { return new TTextData(m_text); }
2016-03-19 06:57:51 +13:00
2016-06-15 18:43:10 +12:00
TDataP TFilePathListData::clone() const {
return new TFilePathListData(m_filePaths);
2016-03-19 06:57:51 +13:00
}
2016-06-15 18:43:10 +12:00
TFilePath TFilePathListData::getFilePath(int i) const {
assert(0 <= i && i < (int)m_filePaths.size());
return m_filePaths[i];
2016-03-19 06:57:51 +13:00
}