text stream ...
This commit is contained in:
15
main.cpp
15
main.cpp
@@ -37,19 +37,12 @@ template<typename P> inline PIBinaryStream<P> & operator >>(PIBinaryStream<P> &
|
||||
|
||||
|
||||
int main(int argc, char * argv[]) {
|
||||
PIByteArray ba;
|
||||
PIFile f;
|
||||
f.open("_", PIIODevice::ReadWrite);
|
||||
f.clear();
|
||||
PIIOBinaryStream ios(&f);
|
||||
auto ts = createPITextStream(&ios);
|
||||
f.open("_test.h", PIIODevice::ReadOnly);
|
||||
PIIOTextStream ts(&f);
|
||||
while (!f.isEnd())
|
||||
piCout << ts.takeLine();
|
||||
|
||||
ts << "hello" << uchar('1');
|
||||
ts.space();
|
||||
(ts << PIString::fromUTF8("№") << 123).space() << -0.1f;
|
||||
ts.newLine();
|
||||
|
||||
piCout << PIString(ba);
|
||||
//PIIOByteArray ioba(&ba);
|
||||
//PIIOBinaryStream stream(&ioba);
|
||||
/*ProcessStatsFixed_ ps;
|
||||
|
||||
Reference in New Issue
Block a user