Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
DAP::Interface Class Reference

#include <DapInterface.h>

Classes

class  SocketHandler
 

Public Member Functions

 Interface (const std::string server_address, int port, Script::Context &scriptContext)
 
 ~Interface ()
 
 NONCOPYABLE (Interface)
 
void TryHandleMessage ()
 
void WaitForMessage ()
 
void EndWaitingForMessage ()
 

Private Member Functions

bool isJSHandlerDefined ()
 
std::string SendDapMessage (const std::string &message)
 
std::string OnMessage (const std::string &message)
 
void SendEventToClient ()
 

Private Attributes

std::unique_ptr< SocketHandler > m_SocketImpl
 
std::unique_ptr< Script::Interface > m_ScriptInterface
 
std::string m_DapRequest
 
std::string m_DapResponse
 
std::mutex m_MsgLock
 
std::mutex m_WaitingLock
 
std::condition_variable m_MsgApplied
 
bool m_IsWaiting {false}
 
JS::RootedValue m_ModuleValue
 

Constructor & Destructor Documentation

◆ Interface()

DAP::Interface::Interface ( const std::string  server_address,
int  port,
Script::Context &  scriptContext 
)

◆ ~Interface()

DAP::Interface::~Interface ( )
default

Member Function Documentation

◆ EndWaitingForMessage()

void DAP::Interface::EndWaitingForMessage ( )

◆ isJSHandlerDefined()

bool DAP::Interface::isJSHandlerDefined ( )
private

◆ NONCOPYABLE()

DAP::Interface::NONCOPYABLE ( Interface  )

◆ OnMessage()

std::string DAP::Interface::OnMessage ( const std::string &  message)
private

◆ SendDapMessage()

std::string DAP::Interface::SendDapMessage ( const std::string &  message)
private

◆ SendEventToClient()

void DAP::Interface::SendEventToClient ( )
private

◆ TryHandleMessage()

void DAP::Interface::TryHandleMessage ( )

◆ WaitForMessage()

void DAP::Interface::WaitForMessage ( )

Member Data Documentation

◆ m_DapRequest

std::string DAP::Interface::m_DapRequest
private

◆ m_DapResponse

std::string DAP::Interface::m_DapResponse
private

◆ m_IsWaiting

bool DAP::Interface::m_IsWaiting {false}
private

◆ m_ModuleValue

JS::RootedValue DAP::Interface::m_ModuleValue
private

◆ m_MsgApplied

std::condition_variable DAP::Interface::m_MsgApplied
private

◆ m_MsgLock

std::mutex DAP::Interface::m_MsgLock
private

◆ m_ScriptInterface

std::unique_ptr<Script::Interface> DAP::Interface::m_ScriptInterface
private

◆ m_SocketImpl

std::unique_ptr<SocketHandler> DAP::Interface::m_SocketImpl
private

◆ m_WaitingLock

std::mutex DAP::Interface::m_WaitingLock
private

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