KiCad PCB EDA Suite
Loading...
Searching...
No Matches
diptrace_binary_reader.h File Reference
#include <cstddef>
#include <cstdint>
#include <vector>
#include <wx/string.h>

Go to the source code of this file.

Classes

class  DIPTRACE::BINARY_READER
 Low-level binary reader for DipTrace file formats. More...
 

Namespaces

namespace  DIPTRACE
 

Enumerations

enum class  DIPTRACE::STRING_ENCODING { DIPTRACE::BY_VERSION , DIPTRACE::LEGACY_ASCII , DIPTRACE::UTF16_BE }
 

Variables

constexpr int DIPTRACE::INT3_BIAS = 1000000
 Bias value added to stored 3-byte unsigned integers.
 
constexpr int DIPTRACE::INT4_BIAS = 1000000000
 Bias value added to stored 4-byte unsigned integers.
 
constexpr double DIPTRACE::DIPTRACE_COORD_TO_MM = 1.0 / 30000.0
 DipTrace uses 762 units per mil (30 000 units per mm).
 
constexpr double DIPTRACE::DIPTRACE_ANGLE_TO_DEG = 0.00001
 DipTrace stores angles with 100 000 units per degree.
 
constexpr int DIPTRACE::LEGACY_STRING_VERSION = 37
 Format version at or below which strings use the legacy ASCII encoding (int3 byte-count + raw ASCII bytes).
 
constexpr int DIPTRACE::MAX_STRING_CHARS = 10000
 Maximum sane string length (in characters) accepted by the reader.