| 35 | namespace Firebird { |
| 36 | |
| 37 | class DbImplementation |
| 38 | { |
| 39 | public: |
| 40 | explicit DbImplementation(const Ods::header_page* h); |
| 41 | DbImplementation (UCHAR p_cpu, UCHAR p_os, UCHAR p_cc, UCHAR p_flags) |
| 42 | : di_cpu(p_cpu), di_os(p_os), di_cc(p_cc), di_flags(p_flags) |
| 43 | { } |
| 44 | ~DbImplementation() { } |
| 45 | |
| 46 | private: |
| 47 | UCHAR di_cpu, di_os, di_cc, di_flags; |
| 48 | |
| 49 | public: |
| 50 | const char* cpu() const; |
| 51 | const char* os() const; |
| 52 | const char* cc() const; |
| 53 | const char* endianess() const; |
| 54 | string implementation() const; |
| 55 | |
| 56 | bool compatible(const DbImplementation& v) const; |
| 57 | void store(Ods::header_page* h) const; |
| 58 | void stuff(UCHAR** info) const; |
| 59 | static DbImplementation pick(const UCHAR* info); |
| 60 | UCHAR backwardCompatibleImplementation() const; |
| 61 | static DbImplementation fromBackwardCompatibleByte(UCHAR bcImpl); |
| 62 | |
| 63 | static const DbImplementation current; |
| 64 | }; |
| 65 | |
| 66 | } //namespace Firebird |
no outgoing calls
no test coverage detected