Olympe Engine 2.0
2D Game Engine with ECS Architecture
Loading...
Searching...
No Matches
Static Public Member Functions | Static Private Member Functions | Static Private Attributes | List of all members
Olympe::Tiled::TiledDecoder Class Reference

#include <TiledDecoder.h>

Static Public Member Functions

static std::vector< uint8_tDecodeBase64 (const std::string &encoded)
 
static std::vector< uint8_tDecompressGzip (const std::vector< uint8_t > &compressed)
 
static std::vector< uint8_tDecompressZlib (const std::vector< uint8_t > &compressed)
 
static std::vector< uint32_tBytesToTileIds (const std::vector< uint8_t > &bytes)
 
static std::vector< uint32_tParseCSV (const std::string &csv)
 
static std::vector< uint32_tDecodeTileData (const std::string &data, const std::string &encoding, const std::string &compression)
 

Static Private Member Functions

static bool IsBase64 (unsigned char c)
 

Static Private Attributes

static const std::string base64_chars
 

Detailed Description

Definition at line 22 of file TiledDecoder.h.

Member Function Documentation

◆ BytesToTileIds()

std::vector< uint32_t > Olympe::Tiled::TiledDecoder::BytesToTileIds ( const std::vector< uint8_t > &  bytes)
static

Definition at line 122 of file TiledDecoder.cpp.

References GetComponentTypeID_Static(), and SYSTEM_LOG.

Referenced by DecodeTileData().

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

◆ DecodeBase64()

std::vector< uint8_t > Olympe::Tiled::TiledDecoder::DecodeBase64 ( const std::string &  encoded)
static

Definition at line 19 of file TiledDecoder.cpp.

References base64_chars, GetComponentTypeID_Static(), and IsBase64().

Referenced by DecodeTileData().

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

◆ DecodeTileData()

std::vector< uint32_t > Olympe::Tiled::TiledDecoder::DecodeTileData ( const std::string &  data,
const std::string &  encoding,
const std::string &  compression 
)
static

◆ DecompressGzip()

std::vector< uint8_t > Olympe::Tiled::TiledDecoder::DecompressGzip ( const std::vector< uint8_t > &  compressed)
static

Definition at line 72 of file TiledDecoder.cpp.

References GetComponentTypeID_Static(), and SYSTEM_LOG.

Referenced by DecodeTileData(), and DecompressZlib().

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

◆ DecompressZlib()

std::vector< uint8_t > Olympe::Tiled::TiledDecoder::DecompressZlib ( const std::vector< uint8_t > &  compressed)
static

Definition at line 116 of file TiledDecoder.cpp.

References DecompressGzip(), and GetComponentTypeID_Static().

Referenced by DecodeTileData().

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

◆ IsBase64()

static bool Olympe::Tiled::TiledDecoder::IsBase64 ( unsigned char  c)
inlinestaticprivate

Definition at line 48 of file TiledDecoder.h.

References GetComponentTypeID_Static().

Referenced by DecodeBase64().

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

◆ ParseCSV()

std::vector< uint32_t > Olympe::Tiled::TiledDecoder::ParseCSV ( const std::string &  csv)
static

Definition at line 155 of file TiledDecoder.cpp.

References GetComponentTypeID_Static(), and SYSTEM_LOG.

Referenced by DecodeTileData().

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

Member Data Documentation

◆ base64_chars

const std::string Olympe::Tiled::TiledDecoder::base64_chars
staticprivate
Initial value:
=
"ABCDEFGHIJKLMNOPQRSTUVWXYZ"
"abcdefghijklmnopqrstuvwxyz"
"0123456789+/"

Definition at line 47 of file TiledDecoder.h.

Referenced by DecodeBase64().


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