Photon 1.0.0
Loading...
Searching...
No Matches
Core.hpp File Reference
#include <Config.hpp>
#include <Macros.hpp>
#include <cerrno>
#include <cstdlib>

Go to the source code of this file.

Classes

class  Photon::BrowserError
 
class  Photon::WindowHelper
 

Namespaces

namespace  Photon
 This file is also about defining core js concepts.
 

Macros

#define PHOTON_END_OF_BUFFER   '\0'
 
#define PHOTON_EMPTY_HTML   "<html>\r\n<head>\r\n</head>\r\n<body>\r\n</body>\r\n</html>\r\n"
 
#define PHOTON_CRITICAL(...)   spdlog::critical(__VA_ARGS__)
 
#define PHOTON_ERROR(...)   spdlog::error(__VA_ARGS__)
 
#define PHOTON_INFO(...)   spdlog::info(__VA_ARGS__)
 
#define PHOTON_WARN(...)   spdlog::warn(__VA_ARGS__)
 

Typedefs

using Photon::Thread = std::thread
 
using Photon::String = std::string
 
template<typename CharType >
using Photon::BasicString = std::basic_string< CharType >
 
using Photon::PChar = wchar_t
 
using Photon::PString = BasicString< PChar >
 

Functions

PHOTON_API void photon_log (const char *str)
 
PHOTON_API size_t photon_strlen (const char *str)
 
PHOTON_API time_t photon_get_epoch ()
 
PHOTON_API FILE * photon_get_logger ()
 
PHOTON_API bool photon_open_logger ()
 
String Photon::photon_replace_format (String fmt, String output, String with)
 

Macro Definition Documentation

◆ PHOTON_CRITICAL

#define PHOTON_CRITICAL (   ...)    spdlog::critical(__VA_ARGS__)

◆ PHOTON_EMPTY_HTML

#define PHOTON_EMPTY_HTML   "<html>\r\n<head>\r\n</head>\r\n<body>\r\n</body>\r\n</html>\r\n"

◆ PHOTON_END_OF_BUFFER

#define PHOTON_END_OF_BUFFER   '\0'

◆ PHOTON_ERROR

#define PHOTON_ERROR (   ...)    spdlog::error(__VA_ARGS__)

◆ PHOTON_INFO

#define PHOTON_INFO (   ...)    spdlog::info(__VA_ARGS__)

◆ PHOTON_WARN

#define PHOTON_WARN (   ...)    spdlog::warn(__VA_ARGS__)

Function Documentation

◆ photon_get_epoch()

PHOTON_API time_t photon_get_epoch ( )

◆ photon_get_logger()

PHOTON_API FILE * photon_get_logger ( )

◆ photon_log()

PHOTON_API void photon_log ( const char *  str)

◆ photon_open_logger()

PHOTON_API bool photon_open_logger ( )

◆ photon_strlen()

PHOTON_API size_t photon_strlen ( const char *  str)