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

#include <BC_EncoderContext.h>

+ Collaboration diagram for CBC_EncoderContext:

Public Member Functions

 CBC_EncoderContext (const WideString &msg)
 
 ~CBC_EncoderContext ()
 
void setSkipAtEnd (int32_t count)
 
wchar_t getCurrentChar ()
 
wchar_t getCurrent ()
 
void writeCodewords (const WideString &codewords)
 
void writeCodeword (wchar_t codeword)
 
size_t getCodewordCount ()
 
void SignalEncoderChange (CBC_HighLevelEncoder::Encoding encoding)
 
void ResetEncoderSignal ()
 
bool hasMoreCharacters ()
 
size_t getRemainingCharacters ()
 
bool UpdateSymbolInfo ()
 
bool UpdateSymbolInfo (size_t len)
 
void resetSymbolInfo ()
 
bool HasCharactersOutsideISO88591Encoding () const
 

Public Attributes

WideString m_msg
 
WideString m_codewords
 
size_t m_pos = 0
 
CBC_HighLevelEncoder::Encoding m_newEncoding
 
UnownedPtr< const CBC_SymbolInfom_symbolInfo
 

Detailed Description

Definition at line 16 of file BC_EncoderContext.h.

Constructor & Destructor Documentation

◆ CBC_EncoderContext()

CBC_EncoderContext::CBC_EncoderContext ( const WideString & msg)
explicit

Definition at line 32 of file BC_EncoderContext.cpp.

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

Referenced by CBC_HighLevelEncoder::EncodeHighLevel().

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

◆ ~CBC_EncoderContext()

CBC_EncoderContext::~CBC_EncoderContext ( )
default

Member Function Documentation

◆ getCodewordCount()

size_t CBC_EncoderContext::getCodewordCount ( )

Definition at line 68 of file BC_EncoderContext.cpp.

◆ getCurrent()

wchar_t CBC_EncoderContext::getCurrent ( )

Definition at line 56 of file BC_EncoderContext.cpp.

◆ getCurrentChar()

wchar_t CBC_EncoderContext::getCurrentChar ( )

Definition at line 53 of file BC_EncoderContext.cpp.

Referenced by CBC_ASCIIEncoder::Encode(), CBC_Base256Encoder::Encode(), CBC_C40Encoder::Encode(), CBC_EdifactEncoder::Encode(), and CBC_X12Encoder::Encode().

+ Here is the caller graph for this function:

◆ getRemainingCharacters()

size_t CBC_EncoderContext::getRemainingCharacters ( )

Definition at line 85 of file BC_EncoderContext.cpp.

◆ HasCharactersOutsideISO88591Encoding()

bool CBC_EncoderContext::HasCharactersOutsideISO88591Encoding ( ) const
inline

Definition at line 35 of file BC_EncoderContext.h.

Referenced by CBC_HighLevelEncoder::EncodeHighLevel().

+ Here is the caller graph for this function:

◆ hasMoreCharacters()

bool CBC_EncoderContext::hasMoreCharacters ( )

Definition at line 81 of file BC_EncoderContext.cpp.

Referenced by CBC_Base256Encoder::Encode(), CBC_C40Encoder::Encode(), CBC_EdifactEncoder::Encode(), CBC_X12Encoder::Encode(), CBC_HighLevelEncoder::EncodeHighLevel(), and CBC_C40Encoder::HandleEOD().

+ Here is the caller graph for this function:

◆ ResetEncoderSignal()

void CBC_EncoderContext::ResetEncoderSignal ( )

Definition at line 77 of file BC_EncoderContext.cpp.

References m_newEncoding, and CBC_HighLevelEncoder::UNKNOWN.

Referenced by CBC_HighLevelEncoder::EncodeHighLevel().

+ Here is the caller graph for this function:

◆ resetSymbolInfo()

void CBC_EncoderContext::resetSymbolInfo ( )

Definition at line 102 of file BC_EncoderContext.cpp.

◆ setSkipAtEnd()

void CBC_EncoderContext::setSkipAtEnd ( int32_t count)

Definition at line 50 of file BC_EncoderContext.cpp.

Referenced by CBC_HighLevelEncoder::EncodeHighLevel().

+ Here is the caller graph for this function:

◆ SignalEncoderChange()

void CBC_EncoderContext::SignalEncoderChange ( CBC_HighLevelEncoder::Encoding encoding)

Definition at line 72 of file BC_EncoderContext.cpp.

References m_newEncoding.

Referenced by CBC_ASCIIEncoder::Encode(), CBC_Base256Encoder::Encode(), CBC_C40Encoder::Encode(), CBC_EdifactEncoder::Encode(), CBC_X12Encoder::Encode(), CBC_C40Encoder::HandleEOD(), and CBC_X12Encoder::HandleEOD().

+ Here is the caller graph for this function:

◆ UpdateSymbolInfo() [1/2]

bool CBC_EncoderContext::UpdateSymbolInfo ( )

Definition at line 89 of file BC_EncoderContext.cpp.

Referenced by CBC_Base256Encoder::Encode(), CBC_C40Encoder::Encode(), CBC_HighLevelEncoder::EncodeHighLevel(), CBC_C40Encoder::HandleEOD(), and CBC_X12Encoder::HandleEOD().

+ Here is the caller graph for this function:

◆ UpdateSymbolInfo() [2/2]

bool CBC_EncoderContext::UpdateSymbolInfo ( size_t len)

Definition at line 93 of file BC_EncoderContext.cpp.

◆ writeCodeword()

void CBC_EncoderContext::writeCodeword ( wchar_t codeword)

Definition at line 64 of file BC_EncoderContext.cpp.

Referenced by CBC_ASCIIEncoder::Encode(), CBC_Base256Encoder::Encode(), CBC_HighLevelEncoder::EncodeHighLevel(), CBC_C40Encoder::HandleEOD(), and CBC_X12Encoder::HandleEOD().

+ Here is the caller graph for this function:

◆ writeCodewords()

void CBC_EncoderContext::writeCodewords ( const WideString & codewords)

Definition at line 60 of file BC_EncoderContext.cpp.

Referenced by CBC_EdifactEncoder::Encode(), and CBC_C40Encoder::WriteNextTriplet().

+ Here is the caller graph for this function:

Member Data Documentation

◆ m_codewords

WideString CBC_EncoderContext::m_codewords

Definition at line 40 of file BC_EncoderContext.h.

◆ m_msg

WideString CBC_EncoderContext::m_msg

Definition at line 39 of file BC_EncoderContext.h.

◆ m_newEncoding

◆ m_pos

size_t CBC_EncoderContext::m_pos = 0

Definition at line 41 of file BC_EncoderContext.h.

◆ m_symbolInfo

UnownedPtr<const CBC_SymbolInfo> CBC_EncoderContext::m_symbolInfo

Definition at line 44 of file BC_EncoderContext.h.


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