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_X12Encoder Class Referencefinal

#include <BC_X12Encoder.h>

+ Inheritance diagram for CBC_X12Encoder:
+ Collaboration diagram for CBC_X12Encoder:

Public Member Functions

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

Additional Inherited Members

- Static Public Member Functions inherited from CBC_C40Encoder
static void WriteNextTriplet (CBC_EncoderContext *context, WideString *buffer)
 

Detailed Description

Definition at line 12 of file BC_X12Encoder.h.

Constructor & Destructor Documentation

◆ CBC_X12Encoder()

CBC_X12Encoder::CBC_X12Encoder ( )
default

◆ ~CBC_X12Encoder()

CBC_X12Encoder::~CBC_X12Encoder ( )
overridedefault

Member Function Documentation

◆ Encode()

bool CBC_X12Encoder::Encode ( CBC_EncoderContext * context)
overridevirtual

Reimplemented from CBC_C40Encoder.

Definition at line 41 of file BC_X12Encoder.cpp.

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

+ Here is the call graph for this function:

◆ EncodeChar()

int32_t CBC_X12Encoder::EncodeChar ( wchar_t c,
WideString * sb )
overridevirtual

Reimplemented from CBC_C40Encoder.

Definition at line 86 of file BC_X12Encoder.cpp.

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

Referenced by Encode().

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

◆ GetEncodingMode()

CBC_HighLevelEncoder::Encoding CBC_X12Encoder::GetEncodingMode ( )
overridevirtual

Reimplemented from CBC_C40Encoder.

Definition at line 37 of file BC_X12Encoder.cpp.

References CBC_HighLevelEncoder::X12.

Referenced by Encode().

+ Here is the caller graph for this function:

◆ HandleEOD()

bool CBC_X12Encoder::HandleEOD ( CBC_EncoderContext * context,
WideString * buffer )
overridevirtual

Reimplemented from CBC_C40Encoder.

Definition at line 64 of file BC_X12Encoder.cpp.

References CBC_HighLevelEncoder::ASCII, CBC_EncoderContext::SignalEncoderChange(), CBC_EncoderContext::UpdateSymbolInfo(), CBC_EncoderContext::writeCodeword(), and CBC_HighLevelEncoder::X12_UNLATCH.

Referenced by Encode().

+ 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: