FLImaging 6.5.8.1
FLImaging::Base::CBase64 Class Reference

Base64 Class. More...

#include <Base64.h>

Inheritance diagram for FLImaging::Base::CBase64:
FLImaging::Base::CFLBase

Public Member Functions

 CBase64 ()
 Default constructor.
 
- Public Member Functions inherited from FLImaging::Base::CFLBase
 CFLBase ()
 Default constructor.
 
virtual ~CFLBase ()
 Destructor.
 
void Lock () const
 Set a lock on an object.
 
bool TryLock () const
 Try to lock the object.
 
void Unlock () const
 Unlock the object.
 
virtual const CProcessingUnitBaseGetProcessingUnit () const
 Returns the set ProcessingUnit.
 
virtual const CResult SetProcessingUnit (const CProcessingUnitBase &pub)
 set the ProcessingUnit
 
virtual const CResult SetProcessingUnit (const CProcessingUnitBase *pPub)
 Set the ProcessingUnit.
 
virtual void ResetProcessingUnit ()
 Rest the ProcessingUnit.
 
virtual bool IsValid () const
 Validate the object.
 
template<class T >
bool IsValid (T &tValue) const
 Validate input values.
 
template<class T >
bool IsValid (T *pTValue) const
 Validate input values.
 
template<class T >
void GenerateMin (T &tValue) const
 Generate the minimum value of that type.
 
template<class T >
void GenerateMin (T *pTValue) const
 Generate the minimum value of that type.
 
template<class T >
void GenerateMinInt32 (T &tValue) const
 Generate minimum signed 32-bit integer value.
 
template<class T >
void GenerateMinInt32 (T *pTValue) const
 Generate minimum signed 32-bit integer value.
 
template<class T >
void GenerateMinInt31 (T &tValue) const
 Generate minimum signed 31-bit integer value.
 
template<class T >
void GenerateMinInt31 (T *pTValue) const
 Generate minimum signed 31-bit integer value.
 
template<class T >
void GenerateMax (T &tValue) const
 Generate the maximum value of that type.
 
template<class T >
void GenerateMax (T *pTValue) const
 Generate the maximum value of that type.
 
template<class T >
void GenerateMaxInt32 (T &tValue) const
 Generate maximum signed 32-bit integer value.
 
template<class T >
void GenerateMaxInt32 (T *pTValue) const
 Generate maximum signed 32-bit integer value.
 
template<class T >
void GenerateMaxInt31 (T &tValue) const
 Generate maximum signed 31-bit integer value.
 
template<class T >
void GenerateMaxInt31 (T *pTValue) const
 Generate maximum signed 31-bit integer value.
 
template<class T >
void GenerateInvalid (T &tValue) const
 Generate invalid value.
 
template<class T >
void GenerateInvalid (T *pTValue) const
 Generate invalid value.
 
virtual void OnReceiveBroadcast (const CBroadcastMessage *pMessage)
 Callback function. A function that receives a BroadcastMessage.
 
virtual int64_t GetClassType () const =0
 Returns the Type value of Class. The returned value itself has no meaning, but if it is the same type of class, the same value will be displayed, so comparison is possible.
 
const char * GetClassNameWithNamespace () const
 Returns the class name including the namespace of the actual instance.
 
const char * GetClassNameWithoutNamespace () const
 Returns the class name that does not include the namespace of the actual instance.
 
virtual uint32_t GetClassHash () const
 Returns the class hash value of the actual instance. For the same class, even if the instance is different, it has the same value.
 
virtual bool IsLicenseAvailable () const
 Returns whether the algorithm can be used with the current license.
 
const CResult ShareSynchronizationObject (const CFLBase *pSrcObject) const
 Share synchronization object of original object.
 
bool IsSharedSynchronizationObject () const
 Is shared synchronization object.
 
virtual void Throw (const CResult &res, const wchar_t *pWcsExtraMessage=nullptr) const
 Raise an exception. Information and error codes of the object that occurred are recorded in the log.
 
virtual void Throw (const std::exception &res, const wchar_t *pWcsExtraMessage) const
 Raise an exception. Information and error codes of the object that occurred are recorded in the log.
 

Static Public Member Functions

static const CResult Encode (const CFLData &dataRaw, CFLData &dataResultBase64)
 Encode.
 
static const CResult Encode (const CFLData *pBufferRaw, CFLData *pBufferResultBase64)
 Encode.
 
static const CResult Encode (const CFLData &dataRaw, CFLString< wchar_t > &strResultBase64)
 Encode.
 
static const CResult Encode (const CFLData *pDataRaw, CFLString< wchar_t > *pStrResultBase64)
 Encode.
 
static const CResult Encode (const uint8_t *pU8DataRaw, size_t stSize, CFLString< wchar_t > *pStrResultBase64)
 Encode.
 
static const CResult Decode (const CFLData &dataBase64, CFLData &dataResultRaw)
 Decode.
 
static const CResult Decode (const CFLData *pDataBase64, CFLData *pBufferResultRaw)
 Decode.
 

Detailed Description

Base64 Class.

Member Function Documentation

◆ Decode() [1/2]

static const CResult FLImaging::Base::CBase64::Decode ( const CFLData & dataBase64,
CFLData & dataResultRaw )
static

Decode.

Parameters
[in]dataBase64Decode data object
[out]dataResultRawResult data object
Return values
constFLImaging::CResult Returns the result of executing the function.
See also
FLImaging::CResult
FLImaging::Base::CFLData

◆ Decode() [2/2]

static const CResult FLImaging::Base::CBase64::Decode ( const CFLData * pDataBase64,
CFLData * pBufferResultRaw )
static

Decode.

Parameters
[in]pDataBase64Decode data object
[out]pBufferResultRawResult data object
Return values
constFLImaging::CResult Returns the result of executing the function.
See also
FLImaging::CResult
FLImaging::Base::CFLData

◆ Encode() [1/5]

static const CResult FLImaging::Base::CBase64::Encode ( const CFLData & dataRaw,
CFLData & dataResultBase64 )
static

Encode.

Parameters
[in]dataRawEncode data object
[out]dataResultBase64Result data object
Return values
constFLImaging::CResult Returns the result of executing the function.
See also
FLImaging::CResult
FLImaging::Base::CFLData

◆ Encode() [2/5]

static const CResult FLImaging::Base::CBase64::Encode ( const CFLData & dataRaw,
CFLString< wchar_t > & strResultBase64 )
static

Encode.

Parameters
[in]dataRawEncode data object
[out]strResultBase64Result data string
Return values
constFLImaging::CResult Returns the result of executing the function.
See also
FLImaging::CResult
FLImaging::Base::CFLData
FLImaging::Base::CFLString

◆ Encode() [3/5]

static const CResult FLImaging::Base::CBase64::Encode ( const CFLData * pBufferRaw,
CFLData * pBufferResultBase64 )
static

Encode.

Parameters
[in]pBufferRawEncode data object
[out]pBufferResultBase64Result data object
Return values
constFLImaging::CResult Returns the result of executing the function.
See also
FLImaging::CResult
FLImaging::Base::CFLData

◆ Encode() [4/5]

static const CResult FLImaging::Base::CBase64::Encode ( const CFLData * pDataRaw,
CFLString< wchar_t > * pStrResultBase64 )
static

Encode.

Parameters
[in]pDataRawEncode data object
[out]pStrResultBase64Result data string
Return values
constFLImaging::CResult Returns the result of executing the function.
See also
FLImaging::CResult
FLImaging::Base::CFLData
FLImaging::Base::CFLString

◆ Encode() [5/5]

static const CResult FLImaging::Base::CBase64::Encode ( const uint8_t * pU8DataRaw,
size_t stSize,
CFLString< wchar_t > * pStrResultBase64 )
static

Encode.

Parameters
[in]pU8DataRawEncode data buffer
[in]stSizeEncode data buffer size
[out]pStrResultBase64Result data string
Return values
constFLImaging::CResult Returns the result of executing the function.
See also
FLImaging::CResult
FLImaging::Base::CFLString