本文整理汇总了C++中TextStream::ReadLine方法的典型用法代码示例。如果您正苦于以下问题:C++ TextStream::ReadLine方法的具体用法?C++ TextStream::ReadLine怎么用?C++ TextStream::ReadLine使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TextStream
的用法示例。
在下文中一共展示了TextStream::ReadLine方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: Parse
//-----------------------------------------------------------------------------------------------------------------------------------------------------
VOID PlyElement::Parse( Ply::DataFormat F, Stream* pStream )
{
if (F == Ply::Ascii)
{
TextStream S = TextStream(pStream);
Array<String> V = S.ReadLine().Split( &String::IsWhitespace );
SIZE_T j=0;
for( SIZE_T i=0; i<m_Properties.Length(); i++)
{
/*
switch( m_Properties[i]->Type() )
{
case PlyProperty::Float32:
m_Properties[i]->Value().Float = Bolitho::Parse<FLOAT>(V[j++]);
break;
case PlyProperty::Float64:
m_Properties[i]->Value().Double = Bolitho::Parse<DOUBLE>(V[j++]);
break;
case PlyProperty::UInt8:
m_Properties[i]->Value().UInt8 = Bolitho::Parse<UINT8>(V[j++]);
break;
case PlyProperty::Int8:
m_Properties[i]->Value().Int8 = Bolitho::Parse<INT8>(V[j++]);
break;
case PlyProperty::UInt16:
m_Properties[i]->Value().UInt16 = Bolitho::Parse<UINT16>(V[j++]);
break;
case PlyProperty::Int16:
m_Properties[i]->Value().Int16 = Bolitho::Parse<INT16>(V[j++]);
break;
case PlyProperty::UInt32:
m_Properties[i]->Value().UInt32 = Bolitho::Parse<UINT32>(V[j++]);
break;
case PlyProperty::Int32:
m_Properties[i]->Value().Int32 = Bolitho::Parse<INT32>(V[j++]);
break;
case PlyProperty::List:
{
PlyPropertyList* pList = (PlyPropertyList*)m_Properties[i];
SIZE_T N = Bolitho::Parse<SIZE_T>( V[j++] );
pList->Values().Resize(N);
for (SIZE_T k=0; k<N; k++)
{
switch( pList->ElementType() )
{
case PlyProperty::Float32:
pList->Values()[k].Float = Bolitho::Parse<FLOAT>(V[j++]);
break;
case PlyProperty::Float64:
pList->Values()[k].Double = Bolitho::Parse<DOUBLE>(V[j++]);
break;
case PlyProperty::UInt8:
pList->Values()[k].UInt8 = Bolitho::Parse<UINT8>(V[j++]);
break;
case PlyProperty::Int8:
pList->Values()[k].Int8 = Bolitho::Parse<INT8>(V[j++]);
break;
case PlyProperty::UInt16:
pList->Values()[k].UInt16 = Bolitho::Parse<UINT16>(V[j++]);
break;
case PlyProperty::Int16:
pList->Values()[k].Int16 = Bolitho::Parse<INT16>(V[j++]);
break;
case PlyProperty::UInt32:
pList->Values()[k].UInt32 = Bolitho::Parse<UINT32>(V[j++]);
break;
case PlyProperty::Int32:
pList->Values()[k].Int32 = Bolitho::Parse<INT32>(V[j++]);
break;
};
}
}
break;
};
*/
}
}
else if (F == Ply::BinaryBigEndian)
{
}
else if (F == Ply::BinaryLittleEndian)
{
}
}