DbImplementation.h (Firebird-3.0.2.32703-0.tar.bz2) | : | DbImplementation.h (Firebird-3.0.4.33054-0.tar.bz2) | ||
---|---|---|---|---|
skipping to change at line 27 | skipping to change at line 27 | |||
* The Original Code was created by Alexander Peshkoff | * The Original Code was created by Alexander Peshkoff | |||
* for the Firebird Open Source RDBMS project. | * for the Firebird Open Source RDBMS project. | |||
* | * | |||
* Copyright (c) 2009 Alexander Peshkoff <peshkoff@mail.ru> | * Copyright (c) 2009 Alexander Peshkoff <peshkoff@mail.ru> | |||
* and all contributors signed below. | * and all contributors signed below. | |||
* | * | |||
* All Rights Reserved. | * All Rights Reserved. | |||
* Contributor(s): ______________________________________. | * Contributor(s): ______________________________________. | |||
*/ | */ | |||
#ifndef DBIMPLEMENTATION_H | ||||
#define DBIMPLEMENTATION_H | ||||
#include "../common/classes/fb_string.h" | #include "../common/classes/fb_string.h" | |||
namespace Ods { | namespace Ods { | |||
struct header_page; | struct header_page; | |||
struct generator_page; | ||||
} | } | |||
namespace Firebird { | namespace Firebird { | |||
class DbImplementation | class DbImplementation | |||
{ | { | |||
public: | public: | |||
explicit DbImplementation(const Ods::header_page* h); | explicit DbImplementation(const Ods::header_page* h); | |||
DbImplementation (UCHAR p_cpu, UCHAR p_os, UCHAR p_cc, UCHAR p_flags) | DbImplementation (UCHAR p_cpu, UCHAR p_os, UCHAR p_cc, UCHAR p_flags) | |||
: di_cpu(p_cpu), di_os(p_os), di_cc(p_cc), di_flags(p_flags) | : di_cpu(p_cpu), di_os(p_os), di_cc(p_cc), di_flags(p_flags) | |||
{ } | { } | |||
DbImplementation (UCHAR p_compatImpl); | DbImplementation () | |||
: di_cpu(255u), di_os(255u), di_cc(255u), di_flags(255u) | ||||
{ } | ||||
~DbImplementation() { } | ~DbImplementation() { } | |||
private: | private: | |||
UCHAR di_cpu, di_os, di_cc, di_flags; | UCHAR di_cpu, di_os, di_cc, di_flags; | |||
public: | public: | |||
const char* cpu() const; | const char* cpu() const; | |||
const char* os() const; | const char* os() const; | |||
const char* cc() const; | const char* cc() const; | |||
const char* endianess() const; | const char* endianess() const; | |||
string implementation() const; | string implementation() const; | |||
bool compatible(const DbImplementation& v) const; | bool compatible(const DbImplementation& v) const; | |||
void store(Ods::header_page* h) const; | void store(Ods::header_page* h) const; | |||
void stuff(UCHAR** info) const; | void stuff(UCHAR** info) const; | |||
static DbImplementation pick(const UCHAR* info); | static DbImplementation pick(const UCHAR* info); | |||
UCHAR backwardCompatibleImplementation() const; | UCHAR backwardCompatibleImplementation() const; | |||
static DbImplementation fromBackwardCompatibleByte(UCHAR bcImpl); | static DbImplementation fromBackwardCompatibleByte(UCHAR bcImpl); | |||
bool same() const; | ||||
bool ods12_1_gen() const; | ||||
bool ods12_0_gen() const; | ||||
static const DbImplementation current; | static const DbImplementation current; | |||
}; | }; | |||
} //namespace Firebird | } //namespace Firebird | |||
#endif //DBIMPLEMENTATION_H | ||||
End of changes. 5 change blocks. | ||||
1 lines changed or deleted | 11 lines changed or added |