Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#include "tdata.h"
Toshihiro Shimizu 890ddd
#include "tconvert.h"
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
DEFINE_CLASS_CODE(TData, 16)
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
TTextData::TTextData(std::string text) : m_text(::to_wstring(text)) {}
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
TDataP TTextData::clone() const { return new TTextData(m_text); }
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
TDataP TFilePathListData::clone() const {
Shinya Kitaoka 120a6e
  return new TFilePathListData(m_filePaths);
Toshihiro Shimizu 890ddd
}
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
TFilePath TFilePathListData::getFilePath(int i) const {
Shinya Kitaoka 120a6e
  assert(0 <= i && i < (int)m_filePaths.size());
Shinya Kitaoka 120a6e
  return m_filePaths[i];
Toshihiro Shimizu 890ddd
}