Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
CBC_HighLevelEncoder Class Reference

#include <BC_HighLevelEncoder.h>

+ Collaboration diagram for CBC_HighLevelEncoder:

Public Types

enum class  Encoding : int8_t {
  UNKNOWN = -1 , ASCII = 0 , C40 , TEXT ,
  X12 , EDIFACT , BASE256 , LAST = BASE256
}
 

Public Member Functions

 CBC_HighLevelEncoder ()=delete
 
 ~CBC_HighLevelEncoder ()=delete
 

Static Public Member Functions

static WideString EncodeHighLevel (const WideString &msg)
 
static Encoding LookAheadTest (const WideString &msg, size_t startpos, Encoding currentMode)
 
static bool IsExtendedASCII (wchar_t ch)
 

Static Public Attributes

static const wchar_t LATCH_TO_C40 = 230
 
static const wchar_t LATCH_TO_BASE256 = 231
 
static const wchar_t UPPER_SHIFT = 235
 
static const wchar_t LATCH_TO_ANSIX12 = 238
 
static const wchar_t LATCH_TO_TEXT = 239
 
static const wchar_t LATCH_TO_EDIFACT = 240
 
static const wchar_t C40_UNLATCH = 254
 
static const wchar_t X12_UNLATCH = 254
 

Detailed Description

Definition at line 12 of file BC_HighLevelEncoder.h.

Member Enumeration Documentation

◆ Encoding

enum class CBC_HighLevelEncoder::Encoding : int8_t
strong
Enumerator
UNKNOWN 
ASCII 
C40 
TEXT 
X12 
EDIFACT 
BASE256 
LAST 

Definition at line 14 of file BC_HighLevelEncoder.h.

Constructor & Destructor Documentation

◆ CBC_HighLevelEncoder()

CBC_HighLevelEncoder::CBC_HighLevelEncoder ( )
delete

◆ ~CBC_HighLevelEncoder()

CBC_HighLevelEncoder::~CBC_HighLevelEncoder ( )
delete

Member Function Documentation

◆ EncodeHighLevel()

WideString CBC_HighLevelEncoder::EncodeHighLevel ( const WideString & msg)
static

Definition at line 122 of file BC_HighLevelEncoder.cpp.

References CBC_EncoderContext::CBC_EncoderContext(), fxcrt::WideString::WideString(), ASCII, fxcrt::WideString::Back(), BASE256, CBC_EncoderContext::HasCharactersOutsideISO88591Encoding(), CBC_EncoderContext::hasMoreCharacters(), CBC_EncoderContext::m_newEncoding, fxcrt::WideString::operator+=(), fxcrt::WideString::operator==(), CBC_EncoderContext::ResetEncoderSignal(), CBC_EncoderContext::setSkipAtEnd(), UNKNOWN, CBC_EncoderContext::UpdateSymbolInfo(), and CBC_EncoderContext::writeCodeword().

Referenced by CBC_DataMatrixWriter::Encode().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ IsExtendedASCII()

bool CBC_HighLevelEncoder::IsExtendedASCII ( wchar_t ch)
static

Definition at line 328 of file BC_HighLevelEncoder.cpp.

Referenced by CBC_ASCIIEncoder::Encode(), and LookAheadTest().

+ Here is the caller graph for this function:

◆ LookAheadTest()

CBC_HighLevelEncoder::Encoding CBC_HighLevelEncoder::LookAheadTest ( const WideString & msg,
size_t startpos,
CBC_HighLevelEncoder::Encoding currentMode )
static

Definition at line 185 of file BC_HighLevelEncoder.cpp.

References ASCII, BASE256, C40, EDIFACT, FXSYS_IsDecimalDigit(), IsExtendedASCII(), TEXT, and X12.

+ Here is the call graph for this function:

Member Data Documentation

◆ C40_UNLATCH

const wchar_t CBC_HighLevelEncoder::C40_UNLATCH = 254
static

Definition at line 42 of file BC_HighLevelEncoder.h.

Referenced by CBC_C40Encoder::HandleEOD().

◆ LATCH_TO_ANSIX12

const wchar_t CBC_HighLevelEncoder::LATCH_TO_ANSIX12 = 238
static

Definition at line 39 of file BC_HighLevelEncoder.h.

Referenced by CBC_ASCIIEncoder::Encode().

◆ LATCH_TO_BASE256

const wchar_t CBC_HighLevelEncoder::LATCH_TO_BASE256 = 231
static

Definition at line 37 of file BC_HighLevelEncoder.h.

Referenced by CBC_ASCIIEncoder::Encode().

◆ LATCH_TO_C40

const wchar_t CBC_HighLevelEncoder::LATCH_TO_C40 = 230
static

Definition at line 36 of file BC_HighLevelEncoder.h.

Referenced by CBC_ASCIIEncoder::Encode().

◆ LATCH_TO_EDIFACT

const wchar_t CBC_HighLevelEncoder::LATCH_TO_EDIFACT = 240
static

Definition at line 41 of file BC_HighLevelEncoder.h.

Referenced by CBC_ASCIIEncoder::Encode().

◆ LATCH_TO_TEXT

const wchar_t CBC_HighLevelEncoder::LATCH_TO_TEXT = 239
static

Definition at line 40 of file BC_HighLevelEncoder.h.

Referenced by CBC_ASCIIEncoder::Encode().

◆ UPPER_SHIFT

const wchar_t CBC_HighLevelEncoder::UPPER_SHIFT = 235
static

Definition at line 38 of file BC_HighLevelEncoder.h.

Referenced by CBC_ASCIIEncoder::Encode().

◆ X12_UNLATCH

const wchar_t CBC_HighLevelEncoder::X12_UNLATCH = 254
static

Definition at line 43 of file BC_HighLevelEncoder.h.

Referenced by CBC_X12Encoder::HandleEOD().


The documentation for this class was generated from the following files: