version 2.92

pip_cmg
This commit is contained in:
2022-06-09 17:59:04 +03:00
parent f67e3030b9
commit b66272a68a
7 changed files with 74 additions and 62 deletions

View File

@@ -3,11 +3,11 @@
#include "pitextstream.h"
#include "piiostream.h"
//#include "stream.h"
//#include "ccm.h"
//#include "ccm_.h"
//#include "pisystemmonitor_.h"
using namespace PICoutManipulators;
/*
class File: public PIBinaryStream<File> {
public:
PIFile file;
@@ -25,7 +25,9 @@ public:
struct TS {
TS(int v0 = -1, float v1 = -1, PIString v2 = "") {i = v0; f = v1;/* s = v2;*/}
TS(int v0 = -1, float v1 = -1, PIString v2 = "") {i = v0; f = v1;
// s = v2;
}
int i;
float f;
//PIString s;
@@ -35,8 +37,20 @@ PICout operator << (PICout c, const TS & v) {c << '{' << v.i << ", " << v.f << '
template<typename P> inline PIBinaryStream<P> & operator <<(PIBinaryStream<P> & s, const TS & v) {s << v.i; return s;}
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;
/*KMM::NS::Project p, p1;
p.sms_path = "mypath";
p.time_0 = "0.05";
p.time_1 = "10e + 3";
PIByteArray ba;
ba << p;
piCout << ba;
piCout << p1.sms_path << p1.time_0 << p1.time_1;
ba >> p1;
piCout << p1.sms_path << p1.time_0 << p1.time_1;*/
/*PIFile f;
f.open("_test.h", PIIODevice::ReadOnly);
PIIOTextStream ts(&f);
ts.setEncoding(PIIOTextStream::System);
@@ -45,7 +59,7 @@ int main(int argc, char * argv[]) {
ts >> v;
piCout << v;
//piCout << ts.takeCWord();
}
}*/
/*PIByteArray ba;
PIIOByteArray ioba(&ba);