![]() |
Mapper
0.9.0
API documentation
|
Namespaces | |
string | |
Private OCD string implementation details. | |
Classes | |
struct | AreaSymbolCommonV8 |
struct | AreaSymbolV11 |
struct | AreaSymbolV12 |
struct | AreaSymbolV8 |
struct | AreaSymbolV9 |
struct | BaseSymbolV11 |
struct | BaseSymbolV8 |
struct | BaseSymbolV9 |
struct | BasicTextAttributesV8 |
struct | CmykScreenV8 |
struct | CmykV8 |
struct | ColorInfoV8 |
struct | Custom8BitEncoding |
A trait for strings and file formats that use a custom 8 bit encoding. More... | |
struct | ExportSetupV8 |
struct | FileHeaderGeneric |
The generic header at the beginning of all supported OCD file formats. More... | |
struct | FileHeaderV12 |
struct | FileHeaderV8 |
struct | FileHeaderV9 |
struct | FormatV11 |
OCD file format version 11 trait. More... | |
struct | FormatV12 |
OCD file format version 11 trait. More... | |
struct | FormatV8 |
OCD file format version 8 trait. More... | |
struct | FormatV9 |
OCD file format version 9 trait. More... | |
struct | FramingAttributesV8 |
struct | GpsPointV8 |
struct | IconV8 |
struct | IconV9 |
struct | IndexBlock |
An IndexBlock collects 256 index entries, and the file position of the next index block if more index entries exist. More... | |
struct | LineSymbolCommonV8 |
struct | LineSymbolV11 |
struct | LineSymbolV8 |
struct | LineSymbolV9 |
struct | LineTextSymbolV11 |
struct | LineTextSymbolV8 |
struct | LineTextSymbolV9 |
struct | ObjectIndexEntryV8 |
struct | ObjectIndexEntryV9 |
struct | ObjectV12 |
struct | ObjectV8 |
struct | ObjectV9 |
struct | OcdPoint32 |
The OCD file point data type. More... | |
struct | ParameterString |
The parameter string trait. More... | |
struct | ParameterStringIndexEntry |
An index entry for a parameter string. More... | |
struct | PascalString |
A string of max. More... | |
struct | PointSymbolElementV8 |
struct | PointSymbolV11 |
struct | PointSymbolV8 |
struct | PointSymbolV9 |
struct | PrintSetupV8 |
struct | RectangleSymbolV11 |
struct | RectangleSymbolV8 |
struct | RectangleSymbolV9 |
struct | SeparationInfoV8 |
struct | SetupV8 |
struct | SpecialTextAttributesV8 |
struct | SymbolHeaderV8 |
struct | SymbolIndexEntry |
An index entry for a symbol. More... | |
struct | TextSymbolV11 |
struct | TextSymbolV8 |
struct | TextSymbolV9 |
struct | Utf16PascalString |
A UTF-16LE-encoded string of max. More... | |
struct | Utf8Encoding |
A trait for strings and file formats that use UTF-8 encoding. More... | |
struct | Utf8PascalString |
A UTF-8-encoded string of max. More... | |
struct | ZoomRectV8 |
Typedefs | |
using | FormatV10 = FormatV9 |
using | FormatV2018 = FormatV12 |
typedef double | PascalDouble |
Functions | |
Q_STATIC_ASSERT (sizeof(double)==8) | |
Q_STATIC_ASSERT (sizeof(FileHeaderGeneric)==8) | |
Q_STATIC_ASSERT (sizeof(FormatV8::FileHeader) - sizeof(SymbolHeaderV8)==48) | |
Q_STATIC_ASSERT (sizeof(FormatV9::FileHeader)==48) | |
Q_STATIC_ASSERT (sizeof(FormatV12::FileHeader)==60) | |
Q_STATIC_ASSERT (std::extent< decltype(IconV8::bits)>::value==IconV8::length()) | |
Q_STATIC_ASSERT (std::extent< decltype(IconV9::bits)>::value==IconV9::length()) | |
bool | operator== (const IconV8 &lhs, const IconV8 &rhs) |
bool | operator== (const IconV9 &lhs, const IconV9 &rhs) |
const void * | getBlockCheckedRaw (const QByteArray &byte_array, quint32 pos, quint32 block_size) |
QByteArray & | addPadding (QByteArray &byte_array) |
Adds padding so that the next data is appended at a multiple of 8. More... | |
template<class BlockType > | |
const BlockType * | getBlockChecked (const QByteArray &byte_array, quint32 pos) |
Returns a pointer to the (index) block at pos inside byte_array. More... | |
template<class BlockType > | |
BlockType * | getBlockChecked (QByteArray &byte_array, quint32 pos) |
Returns a pointer to the (index) block at pos inside byte_array. More... | |
bool | operator== (const CmykScreenV8 &lhs, const CmykScreenV8 &rhs) |
bool | operator!= (const CmykScreenV8 &lhs, const CmykScreenV8 &rhs) |
bool | operator!= (const IconV8 &lhs, const IconV8 &rhs) |
bool | operator!= (const IconV9 &lhs, const IconV9 &rhs) |
using Ocd::FormatV10 = typedef FormatV9 |
using Ocd::FormatV2018 = typedef FormatV12 |
typedef double Ocd::PascalDouble |
enum Ocd::FileType |
enum Ocd::FramingMode |
enum Ocd::HatchMode |
enum Ocd::ObjectStatus |
enum Ocd::StructureMode |
enum Ocd::SymbolFlags |
enum Ocd::SymbolStatus |
enum Ocd::SymbolType |
enum Ocd::TextAlignment |
QByteArray & Ocd::addPadding | ( | QByteArray & | byte_array | ) |
Adds padding so that the next data is appended at a multiple of 8.
On most CPUs, access to unaligned data is slower than access to aligned data. This is an attempt to improve alignment. (Unaligned access even leads to undefined behaviour, but we declare OCD structures with pragma pack.)
const BlockType* Ocd::getBlockChecked | ( | const QByteArray & | byte_array, |
quint32 | pos | ||
) |
Returns a pointer to the (index) block at pos inside byte_array.
This function returns nullptr if pos is zero, or if pos points to a block (at least partially) outside the byte_array.
BlockType* Ocd::getBlockChecked | ( | QByteArray & | byte_array, |
quint32 | pos | ||
) |
Returns a pointer to the (index) block at pos inside byte_array.
Non-const overload. This will not cause a deep copy of the byte array.
const void* Ocd::getBlockCheckedRaw | ( | const QByteArray & | byte_array, |
quint32 | pos, | ||
quint32 | block_size | ||
) |
|
inline |
|
inline |
Ocd::Q_STATIC_ASSERT | ( | sizeof(double) | = =8 | ) |
Ocd::Q_STATIC_ASSERT | ( | sizeof(FileHeaderGeneric) | = =8 | ) |
Ocd::Q_STATIC_ASSERT | ( | sizeof(FormatV8::FileHeader) - sizeof(SymbolHeaderV8) | = =48 | ) |
Ocd::Q_STATIC_ASSERT | ( | sizeof(FormatV9::FileHeader) | = =48 | ) |
Ocd::Q_STATIC_ASSERT | ( | sizeof(FormatV12::FileHeader) | = =60 | ) |
Ocd::Q_STATIC_ASSERT | ( | std::extent< decltype(IconV8::bits)>::value | = =IconV8::length() | ) |
Ocd::Q_STATIC_ASSERT | ( | std::extent< decltype(IconV9::bits)>::value | = =IconV9::length() | ) |