Core: Stream::Set|GetVersion

git-svn-id: svn://ultimatepp.org/upp/trunk@16023 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2021-07-18 16:21:52 +00:00
parent cd3df22523
commit a16a9b0e44
99 changed files with 17 additions and 22660 deletions

View file

@ -31,6 +31,8 @@ protected:
unsigned style:6;
unsigned errorcode:16;
int version = 0;
enum {
BEGINOFLINE = 0x02,
@ -60,6 +62,9 @@ public:
virtual ~Stream();
word GetStyle() const { return style; }
void SetVersion(int ver) { version = ver; }
int GetVersion() const { return version; }
bool IsError() const { return style & STRM_ERROR; }
bool IsOK() const { return !IsError(); }