本文整理汇总了C++中TSTR::remove方法的典型用法代码示例。如果您正苦于以下问题:C++ TSTR::remove方法的具体用法?C++ TSTR::remove怎么用?C++ TSTR::remove使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TSTR
的用法示例。
在下文中一共展示了TSTR::remove方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: ExpScene
void bgExporterMax::ExpScene()
{
struct tm *newtime;
time_t aclock;
time(&aclock);
newtime = localtime(&aclock);
TSTR today = _tasctime(newtime);
today.remove(today.length() - 1);
_ftprintf(m_pStream, _T("%s\t%s\n"),
_T("#BG3D_MODEL"),
FixupName(today)); // 날짜
_ftprintf(m_pStream, _T("%s\t%d\t%d\t%d\t%d\t%d\t%d\t%d\t%d\n"),
_T("#SCENE_INFO"),
m_Scene.iVersion, // 버전
m_Scene.iFirstFrame, // 시작 프레임
m_Scene.iLastFrame, // 마지막 프레임
m_Scene.iFrameSpeed, // 프레임 스피드
m_Scene.iTickPerFrame, // 프레임당 틱
m_Scene.iNumMesh, // 메시 갯수
m_Scene.iMaxWeight, // 가중치
m_Scene.iBindPose); // 바인드포즈
}
示例2: ExportGlobalInfo
// Dump some global animation information.
void HoeMax::ExportGlobalInfo()
{
struct tm *newtime;
time_t aclock;
time( &aclock );
newtime = localtime(&aclock);
TSTR today = _tasctime(newtime); // The date string has a \n appended.
today.remove(today.length()-1); // Remove the \n
// Start with a file identifier and format version
m_file.Printf( "// %s\t%.2f\n", this->LongDesc(), this->Version()*0.01f);
m_file.Printf( "// %s\t%s\n", this->AuthorName(), this->CopyrightMessage());
m_file.Printf( "// \"%s\" - %s\n", Utils::FixupName(ip->GetCurFileName()), (TCHAR*)today);
m_file.Printf( "\n");
}
示例3: ExportGlobalInfo
// Dump some global animation information.
void Exporter::ExportGlobalInfo()
{
Interval range = ip->GetAnimRange();
struct tm *newtime;
time_t aclock;
time( &aclock );
newtime = localtime(&aclock);
TSTR today = _tasctime(newtime); // The date string has a \n appended.
today.remove(today.length()-1); // Remove the \n
strcpy(rsm->MaxFileName,FixupName(ip->GetCurFilePath()));
// Texmap* env = ip->GetEnvironmentMap();
}