Exemple #1
0
		const CString	CSXMLNodeException::GetMessage() const{
			Collection::CStringList varList;

			varList.Add(this->m_strNodeName);

			return String::VarReplace(this->m_strMessage, varList, true);
		}
Exemple #2
0
		const CString	CModuleFunctionLoadException::GetMessage() const{
			Collection::CStringList VarList;

			VarList.Add(this->m_strModuleName);
			VarList.Add(this->m_strModuleFunction);

			return String::VarReplace(L"Error while loading function {1} from {0} module: ", VarList, true) + this->m_strMessage;
		}
Exemple #3
0
		const CString	CDocument::ToString(const bool bWithNewLines, const bool bNested) const{
			try{
				Collection::CStringList RetList;

				for(uint32 i = 0; i < this->Nodes.GetLength(); i++)
				{
					RetList.Add(this->Nodes[i].ToString(bWithNewLines, bNested, 0));
				}
				if(bWithNewLines){
					RetList.Add(CreateNewLines(bWithNewLines));
				}

				return RetList.ToString();
			}
			catch(Exception::CException& Exception){
				throw Exception::CSXMLException( 
					L"Error while converting SXML Root to string.", CR_INFO(), Exception);
			}
		}
Exemple #4
0
		const CString	CVertexElement::ToString() const{
			Collection::CStringList list;

			list.Add(L"Stream: " + String::FromUInt32(this->uStream));
			list.Add(L"Param: " + this->strParam);
			list.Add(L"Offset: " + String::FromUInt32(this->uOffset));
			list.Add(L"Type: " + String::ToString(this->uType));
			list.Add(L"Type Number: " + String::FromUInt32(this->uTypeNumber));
			list.Add(L"Instance Usage: " + String::ToString(this->uInstanceUsage));

			return list.ToString(L", ");
		}
Exemple #5
0
		const CString	CDeviceDesc::ToString() const{
			Collection::CStringList list;
			if(this->OutputWindow.IsValid()){
				list.Add(L"OutputWindow: (" + this->OutputWindow->GetTitle() + L")");
			}
			else{
				list.Add(L"OutputWindow: (NULL)");
			}
			list.Add(L"BackBuffer: (" + this->BackBuffer.ToString() + L")");
			list.Add(L"DepthStencilFormat: " + String::ToString(this->uDepthStencilFormat));
			list.Add(L"FullScreen: " + String::FromBool(this->bFullScreen));
			
			return list.ToString(L", ");
		}