version 2.91.0, PITextStream works
This commit is contained in:
18
main.cpp
18
main.cpp
@@ -36,18 +36,26 @@ template<typename P> inline PIBinaryStream<P> & operator <<(PIBinaryStream<P> &
|
||||
template<typename P> inline PIBinaryStream<P> & operator >>(PIBinaryStream<P> & s, TS & v) {s >> v.i; return s;}
|
||||
|
||||
int main(int argc, char * argv[]) {
|
||||
/*PIFile f;
|
||||
PIFile f;
|
||||
f.open("_test.h", PIIODevice::ReadOnly);
|
||||
PIIOTextStream ts(&f);
|
||||
while (!f.isEnd())
|
||||
piCout << ts.takeCWord();*/
|
||||
ts.setEncoding(PIIOTextStream::System);
|
||||
while (!ts.isEnd()) {
|
||||
PIString v;
|
||||
ts >> v;
|
||||
piCout << v;
|
||||
//piCout << ts.takeCWord();
|
||||
}
|
||||
|
||||
PIByteArray ba;
|
||||
/*PIByteArray ba;
|
||||
PIIOByteArray ioba(&ba);
|
||||
//PIIOBinaryStream stream(&ioba);
|
||||
PISystemMonitor::ProcessStatsFixed ps;
|
||||
ba << PIByteArray::RawData("123", 3);
|
||||
piCout << "s" << ba;
|
||||
piCout << "s" << ba;*/
|
||||
|
||||
|
||||
|
||||
//File f;
|
||||
//f.file.open("_", PIIODevice::ReadWrite);
|
||||
//f.file.clear();
|
||||
|
||||
Reference in New Issue
Block a user