Cadabra
Computer algebra system for field theory problems
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | Private Attributes | List of all members
cadabra::ScriptThread Class Reference

#include <ScriptThread.hh>

Public Member Functions

 ScriptThread (DocumentThread *, GUIBase *)
 
 ~ScriptThread ()
 
 ScriptThread (const ScriptThread &)=delete
 
void run ()
 
void terminate ()
 
uint16_t get_local_port () const
 
std::string get_authentication_token () const
 

Private Member Functions

void on_message (websocket_server::id_type id, const std::string &msg, const websocket_server::request_type &req, const std::string &ip_address)
 
void on_open (websocket_server::id_type id)
 
void on_close (websocket_server::id_type id)
 

Private Attributes

websocket_server wserver
 
DocumentThreaddocument
 
GUIBasegui
 
std::mutex url_mutex
 
std::string authentication_token
 
uint16_t local_port
 

Constructor & Destructor Documentation

◆ ScriptThread() [1/2]

ScriptThread::ScriptThread ( DocumentThread d,
GUIBase g 
)

◆ ~ScriptThread()

ScriptThread::~ScriptThread ( )

◆ ScriptThread() [2/2]

cadabra::ScriptThread::ScriptThread ( const ScriptThread )
delete

Member Function Documentation

◆ get_authentication_token()

std::string ScriptThread::get_authentication_token ( ) const

◆ get_local_port()

uint16_t ScriptThread::get_local_port ( ) const

◆ on_close()

void ScriptThread::on_close ( websocket_server::id_type  id)
private

◆ on_message()

void ScriptThread::on_message ( websocket_server::id_type  id,
const std::string &  msg,
const websocket_server::request_type req,
const std::string &  ip_address 
)
private

◆ on_open()

void ScriptThread::on_open ( websocket_server::id_type  id)
private

◆ run()

void ScriptThread::run ( )

◆ terminate()

void ScriptThread::terminate ( )

Member Data Documentation

◆ authentication_token

std::string cadabra::ScriptThread::authentication_token
private

◆ document

DocumentThread* cadabra::ScriptThread::document
private

◆ gui

GUIBase* cadabra::ScriptThread::gui
private

◆ local_port

uint16_t cadabra::ScriptThread::local_port
private

◆ url_mutex

std::mutex cadabra::ScriptThread::url_mutex
mutableprivate

◆ wserver

websocket_server cadabra::ScriptThread::wserver
private

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