pibytearray patch, now automatic supports all simple types

This commit is contained in:
2020-10-01 19:04:10 +03:00
parent e474c5a8de
commit 2ca8db70f3
4 changed files with 268 additions and 129 deletions

View File

@@ -34,7 +34,7 @@ class PIP_EXPORT PIChar
friend class PIString;
friend PIByteArray & operator <<(PIByteArray & s, const PIChar & v);
friend PIByteArray & operator >>(PIByteArray & s, PIChar & v);
friend PICout operator <<(PICout s, const PIChar & v);
friend PICout PIP_EXPORT operator <<(PICout s, const PIChar & v);
public:
//! Contructs ascii symbol
PIChar(const char c) {ch = c; ch &= 0xFF;}
@@ -135,7 +135,7 @@ private:
};
//! Output operator to \a PICout
PICout operator <<(PICout s, const PIChar & v);
PICout PIP_EXPORT operator <<(PICout s, const PIChar & v);
//! Compare operator
inline bool operator ==(const char v, const PIChar & c) {return (PIChar(v) == c);}