Exemplo n.º 1
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", ");
		}
Exemplo n.º 2
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", ");
		}
Exemplo n.º 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);
			}
		}