Panoptes 1.0.0
Endpoint Detection and Response
Loading...
Searching...
No Matches
Macros | Functions
ResourceCore.cpp File Reference
#include "ResourceCore.h"
#include <string>
#include <unordered_map>

Go to the source code of this file.

Macros

#define RESOURCES_EXPORTS
 

Functions

RESOURCES_API int GetResourceErrorCode (const char *errorName)
 
RESOURCES_API const char * GetResourceErrorString (int errorCode)
 

Macro Definition Documentation

◆ RESOURCES_EXPORTS

#define RESOURCES_EXPORTS

Definition at line 1 of file ResourceCore.cpp.

Function Documentation

◆ GetResourceErrorCode()

RESOURCES_API int GetResourceErrorCode ( const char *  errorName)

Definition at line 75 of file ResourceCore.cpp.

75 {
76 auto it = errorCodeMap.find(errorName);
77 return (it != errorCodeMap.end()) ? it->second : NOT_SET;
78}
#define NOT_SET

References NOT_SET.

◆ GetResourceErrorString()

RESOURCES_API const char * GetResourceErrorString ( int  errorCode)

Definition at line 80 of file ResourceCore.cpp.

80 {
81 auto it = errorStringMap.find(errorCode);
82 return (it != errorStringMap.end()) ? it->second : "Unknown error code";
83}