tagging release
[dasher.git] / Src / DasherCore / UserButton.cpp
blob5a14ea7cfa9f3dcd9d160b98eb5aaf7bac6e6a30
1 #include "TimeSpan.h"
2 #include "UserButton.h"
4 #include <sstream>
6 CUserButton::CUserButton(int iId, int iType, int iEffect) {
7 m_iId = iId;
8 m_iType = iType;
9 m_iEffect = iEffect;
10 m_strStringTime = CTimeSpan::GetTimeStamp();
13 std::string CUserButton::GetXML(const std::string& strPrefix) {
14 std::stringstream ssResult;
16 ssResult << strPrefix << "<Button>" << std::endl;
18 ssResult << strPrefix << "\t<Id>" << m_iId << "</Id>" << std::endl;
19 ssResult << strPrefix << "\t<Type>" << m_iType << "</Type>" << std::endl;
20 ssResult << strPrefix << "\t<Effect>" << m_iEffect << "</Effect>" << std::endl;
21 ssResult << strPrefix << "\t<Time>" << m_strStringTime << "</Time>" << std::endl;
23 ssResult << strPrefix << "</Button>" << std::endl;
25 return ssResult.str();