1 // =================================
 2 // Copyright (c) 2024 Seppo Laakko
 3 // Distributed under the MIT license
 4 // =================================
 5 
 6 using System;
 7 
 8 namespace System.IO
 9 {
10     public class IOBase
11     {
12         public IOBase() : errorId(0) {}
13         public virtual default ~IOBase();
14         suppress IOBase(const IOBase&);
15         suppress void operator=(const IOBase&);
16         public inline bool Error() const { return errorId != 0; }
17         public inline void ResetError() { errorId = 0; }
18         public inline int GetErrorId() const { return errorId; }
19         public inline void SetErrorId(int errorId_) { errorId = errorId_; }
20         public string GetErrorMessage() const { return RtmGetErrorMessage(errorId); }
21         private int errorId;
22     }