mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-21 06:45:39 -06:00
Core: Stream::Set|GetVersion
git-svn-id: svn://ultimatepp.org/upp/trunk@16023 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
cd3df22523
commit
a16a9b0e44
99 changed files with 17 additions and 22660 deletions
|
|
@ -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(); }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue