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_C40Encoder Class Reference

#include <BC_C40Encoder.h>

+ Inheritance diagram for CBC_C40Encoder:
+ Collaboration diagram for CBC_C40Encoder:

Public Member Functions

 CBC_C40Encoder ()
 
 ~CBC_C40Encoder () override
 
CBC_HighLevelEncoder::Encoding GetEncodingMode () override
 
bool Encode (CBC_EncoderContext *context) override
 
virtual bool HandleEOD (CBC_EncoderContext *context, WideString *buffer)
 
virtual int32_t EncodeChar (wchar_t c, WideString *sb)
 
- Public Member Functions inherited from CBC_Encoder
 CBC_Encoder ()
 
virtual ~CBC_Encoder ()
 

Static Public Member Functions

static void WriteNextTriplet (CBC_EncoderContext *context, WideString *buffer)
 

Detailed Description

Definition at line 13 of file BC_C40Encoder.h.

Constructor & Destructor Documentation

◆ CBC_C40Encoder()

CBC_C40Encoder::CBC_C40Encoder ( )
default

◆ ~CBC_C40Encoder()

CBC_C40Encoder::~CBC_C40Encoder ( )
overridedefault

Member Function Documentation

◆ Encode()

bool CBC_C40Encoder::Encode ( CBC_EncoderContext * context)
overridevirtual

Implements CBC_Encoder.

Reimplemented in CBC_X12Encoder.

Definition at line 58 of file BC_C40Encoder.cpp.

References EncodeChar(), CBC_EncoderContext::getCurrentChar(), GetEncodingMode(), HandleEOD(), CBC_EncoderContext::hasMoreCharacters(), CBC_EncoderContext::SignalEncoderChange(), and CBC_EncoderContext::UpdateSymbolInfo().

+ Here is the call graph for this function:

◆ EncodeChar()

int32_t CBC_C40Encoder::EncodeChar ( wchar_t c,
WideString * sb )
virtual

Reimplemented in CBC_TextEncoder, and CBC_X12Encoder.

Definition at line 146 of file BC_C40Encoder.cpp.

References EncodeChar(), FXSYS_IsDecimalDigit(), FXSYS_IsUpperASCII(), and fxcrt::WideString::operator+=().

Referenced by Encode(), and EncodeChar().

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

◆ GetEncodingMode()

CBC_HighLevelEncoder::Encoding CBC_C40Encoder::GetEncodingMode ( )
overridevirtual

Implements CBC_Encoder.

Reimplemented in CBC_TextEncoder, and CBC_X12Encoder.

Definition at line 54 of file BC_C40Encoder.cpp.

References CBC_HighLevelEncoder::C40.

Referenced by Encode().

+ Here is the caller graph for this function:

◆ HandleEOD()

bool CBC_C40Encoder::HandleEOD ( CBC_EncoderContext * context,
WideString * buffer )
virtual

Reimplemented in CBC_X12Encoder.

Definition at line 110 of file BC_C40Encoder.cpp.

References CBC_HighLevelEncoder::ASCII, CBC_HighLevelEncoder::C40_UNLATCH, CBC_EncoderContext::hasMoreCharacters(), fxcrt::WideString::operator+=(), CBC_EncoderContext::SignalEncoderChange(), CBC_EncoderContext::UpdateSymbolInfo(), CBC_EncoderContext::writeCodeword(), and WriteNextTriplet().

Referenced by Encode().

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

◆ WriteNextTriplet()

void CBC_C40Encoder::WriteNextTriplet ( CBC_EncoderContext * context,
WideString * buffer )
static

Definition at line 104 of file BC_C40Encoder.cpp.

References CBC_EncoderContext::writeCodewords().

Referenced by CBC_X12Encoder::Encode(), and HandleEOD().

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

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