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

#include <AnimationErrorHandler.h>

Public Member Functions

void LogMissingAnimation (const std::string &entityName, const std::string &graphPath, const std::string &stateName, const std::string &animName)
 
void LogMissingSpritesheet (const std::string &entityName, const std::string &spritesheetId, const std::string &animName)
 
void LogError (const std::string &message)
 
void ClearCache ()
 

Static Public Member Functions

static AnimationErrorHandlerGetInstance ()
 
static AnimationErrorHandlerGet ()
 

Private Member Functions

 AnimationErrorHandler ()=default
 
 ~AnimationErrorHandler ()=default
 
 AnimationErrorHandler (const AnimationErrorHandler &)=delete
 
AnimationErrorHandleroperator= (const AnimationErrorHandler &)=delete
 
std::string GenerateErrorKey (const std::string &error)
 

Private Attributes

std::unordered_set< std::string > m_loggedErrors
 

Detailed Description

Definition at line 21 of file AnimationErrorHandler.h.

Constructor & Destructor Documentation

◆ AnimationErrorHandler() [1/2]

OlympeAnimation::AnimationErrorHandler::AnimationErrorHandler ( )
privatedefault

◆ ~AnimationErrorHandler()

OlympeAnimation::AnimationErrorHandler::~AnimationErrorHandler ( )
privatedefault

◆ AnimationErrorHandler() [2/2]

OlympeAnimation::AnimationErrorHandler::AnimationErrorHandler ( const AnimationErrorHandler )
privatedelete

Member Function Documentation

◆ ClearCache()

void OlympeAnimation::AnimationErrorHandler::ClearCache ( )

Definition at line 64 of file AnimationErrorHandler.cpp.

References m_loggedErrors.

◆ GenerateErrorKey()

std::string OlympeAnimation::AnimationErrorHandler::GenerateErrorKey ( const std::string &  error)
private

Definition at line 69 of file AnimationErrorHandler.cpp.

References GetComponentTypeID_Static().

Referenced by LogError().

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

◆ Get()

static AnimationErrorHandler & OlympeAnimation::AnimationErrorHandler::Get ( )
inlinestatic

Definition at line 29 of file AnimationErrorHandler.h.

References GetInstance().

+ Here is the call graph for this function:

◆ GetInstance()

static AnimationErrorHandler & OlympeAnimation::AnimationErrorHandler::GetInstance ( )
inlinestatic

Definition at line 24 of file AnimationErrorHandler.h.

References GetComponentTypeID_Static().

Referenced by Get().

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

◆ LogError()

void OlympeAnimation::AnimationErrorHandler::LogError ( const std::string &  message)

Definition at line 53 of file AnimationErrorHandler.cpp.

References GenerateErrorKey(), GetComponentTypeID_Static(), m_loggedErrors, and SYSTEM_LOG.

+ Here is the call graph for this function:

◆ LogMissingAnimation()

void OlympeAnimation::AnimationErrorHandler::LogMissingAnimation ( const std::string &  entityName,
const std::string &  graphPath,
const std::string &  stateName,
const std::string &  animName 
)

Definition at line 15 of file AnimationErrorHandler.cpp.

References GetComponentTypeID_Static(), m_loggedErrors, and SYSTEM_LOG.

+ Here is the call graph for this function:

◆ LogMissingSpritesheet()

void OlympeAnimation::AnimationErrorHandler::LogMissingSpritesheet ( const std::string &  entityName,
const std::string &  spritesheetId,
const std::string &  animName 
)

Definition at line 35 of file AnimationErrorHandler.cpp.

References GetComponentTypeID_Static(), m_loggedErrors, and SYSTEM_LOG.

+ Here is the call graph for this function:

◆ operator=()

AnimationErrorHandler & OlympeAnimation::AnimationErrorHandler::operator= ( const AnimationErrorHandler )
privatedelete

Member Data Documentation

◆ m_loggedErrors

std::unordered_set<std::string> OlympeAnimation::AnimationErrorHandler::m_loggedErrors
private

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