gmsh-TingyuanDoc  0.1
An Open-Source Timing-driven Analytical Mixed-size FPGA Placer
onelab::remoteNetworkClient Class Reference

#include <onelab.h>

Inheritance diagram for onelab::remoteNetworkClient:
Collaboration diagram for onelab::remoteNetworkClient:

Public Member Functions

void waitOnSubClients ()
 
 remoteNetworkClient (const std::string &name, const std::string &serverAddress)
 
virtual ~remoteNetworkClient ()
 
GmshClientgetGmshClient ()
 
virtual bool isNetworkClient ()
 
virtual bool clear (const std::string &name="")
 
virtual bool set (const number &p)
 
virtual bool set (const string &p)
 
virtual bool get (std::vector< number > &ps, const std::string &name="")
 
virtual bool get (std::vector< string > &ps, const std::string &name="")
 
virtual bool setAndAppendChoices (const number &p)
 
virtual bool setAndAppendChoices (const string &p)
 
virtual bool getWithoutChoices (std::vector< number > &ps, const std::string &name="")
 
virtual bool getWithoutChoices (std::vector< string > &ps, const std::string &name="")
 
void sendInfo (const std::string &msg)
 
void sendWarning (const std::string &msg)
 
void sendError (const std::string &msg)
 
void sendProgress (const std::string &msg)
 
void sendMergeFileRequest (const std::string &msg)
 
void sendOpenProjectRequest (const std::string &msg)
 
void sendParseStringRequest (const std::string &msg)
 
void runNonBlockingSubClient (const std::string &name, const std::string &command)
 
void runSubClient (const std::string &name, const std::string &command)
 
- Public Member Functions inherited from onelab::client
 client (const std::string &name)
 
virtual ~client ()
 
std::string getName ()
 
void setId (int id)
 
int getId ()
 
void setIndex (int index)
 
int getIndex ()
 
virtual bool run ()
 
virtual bool kill ()
 
virtual void sendVertexArray (const std::string &msg)
 
std::vector< std::string > toChar ()
 
bool fromChar (const std::vector< std::string > &msg)
 
bool toFile (FILE *fp)
 
bool fromFile (FILE *fp)
 

Private Member Functions

template<class T >
bool _set (const T &p, bool withChoices=true)
 
template<class T >
bool _get (std::vector< T > &ps, const std::string &name="", bool withChoices=true)
 

Private Attributes

std::string _serverAddress
 
GmshClient_gmshClient
 
int _numSubClients
 

Additional Inherited Members

- Protected Attributes inherited from onelab::client
std::string _name
 
int _id
 
int _index
 

Detailed Description

Definition at line 1519 of file onelab.h.

Constructor & Destructor Documentation

◆ remoteNetworkClient()

onelab::remoteNetworkClient::remoteNetworkClient ( const std::string &  name,
const std::string &  serverAddress 
)
inline

Definition at line 1639 of file onelab.h.

Here is the call graph for this function:

◆ ~remoteNetworkClient()

virtual onelab::remoteNetworkClient::~remoteNetworkClient ( )
inlinevirtual

Definition at line 1652 of file onelab.h.

Here is the call graph for this function:

Member Function Documentation

◆ _get()

template<class T >
bool onelab::remoteNetworkClient::_get ( std::vector< T > &  ps,
const std::string &  name = "",
bool  withChoices = true 
)
inlineprivate

Definition at line 1538 of file onelab.h.

Referenced by get(), and getWithoutChoices().

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

◆ _set()

template<class T >
bool onelab::remoteNetworkClient::_set ( const T &  p,
bool  withChoices = true 
)
inlineprivate

Definition at line 1527 of file onelab.h.

Referenced by set(), and setAndAppendChoices().

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

◆ clear()

virtual bool onelab::remoteNetworkClient::clear ( const std::string &  name = "")
inlinevirtual

Implements onelab::client.

Definition at line 1664 of file onelab.h.

Here is the call graph for this function:

◆ get() [1/2]

virtual bool onelab::remoteNetworkClient::get ( std::vector< number > &  ps,
const std::string &  name = "" 
)
inlinevirtual

Implements onelab::client.

Definition at line 1675 of file onelab.h.

Referenced by Msg::LoadOnelabClient().

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

◆ get() [2/2]

virtual bool onelab::remoteNetworkClient::get ( std::vector< string > &  ps,
const std::string &  name = "" 
)
inlinevirtual

Implements onelab::client.

Definition at line 1679 of file onelab.h.

Here is the call graph for this function:

◆ getGmshClient()

GmshClient* onelab::remoteNetworkClient::getGmshClient ( )
inline

Definition at line 1662 of file onelab.h.

◆ getWithoutChoices() [1/2]

virtual bool onelab::remoteNetworkClient::getWithoutChoices ( std::vector< number > &  ps,
const std::string &  name = "" 
)
inlinevirtual

Implements onelab::client.

Definition at line 1695 of file onelab.h.

Here is the call graph for this function:

◆ getWithoutChoices() [2/2]

virtual bool onelab::remoteNetworkClient::getWithoutChoices ( std::vector< string > &  ps,
const std::string &  name = "" 
)
inlinevirtual

Implements onelab::client.

Definition at line 1700 of file onelab.h.

Here is the call graph for this function:

◆ isNetworkClient()

virtual bool onelab::remoteNetworkClient::isNetworkClient ( )
inlinevirtual

Reimplemented from onelab::client.

Definition at line 1663 of file onelab.h.

◆ runNonBlockingSubClient()

void onelab::remoteNetworkClient::runNonBlockingSubClient ( const std::string &  name,
const std::string &  command 
)
inline

Definition at line 1733 of file onelab.h.

Referenced by runSubClient().

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

◆ runSubClient()

void onelab::remoteNetworkClient::runSubClient ( const std::string &  name,
const std::string &  command 
)
inline

Definition at line 1750 of file onelab.h.

Here is the call graph for this function:

◆ sendError()

void onelab::remoteNetworkClient::sendError ( const std::string &  msg)
inlinevirtual

Reimplemented from onelab::client.

Definition at line 1713 of file onelab.h.

Here is the call graph for this function:

◆ sendInfo()

void onelab::remoteNetworkClient::sendInfo ( const std::string &  msg)
inlinevirtual

Reimplemented from onelab::client.

Definition at line 1705 of file onelab.h.

Here is the call graph for this function:

◆ sendMergeFileRequest()

void onelab::remoteNetworkClient::sendMergeFileRequest ( const std::string &  msg)
inlinevirtual

Reimplemented from onelab::client.

Definition at line 1721 of file onelab.h.

Here is the call graph for this function:

◆ sendOpenProjectRequest()

void onelab::remoteNetworkClient::sendOpenProjectRequest ( const std::string &  msg)
inlinevirtual

Reimplemented from onelab::client.

Definition at line 1725 of file onelab.h.

Here is the call graph for this function:

◆ sendParseStringRequest()

void onelab::remoteNetworkClient::sendParseStringRequest ( const std::string &  msg)
inlinevirtual

Reimplemented from onelab::client.

Definition at line 1729 of file onelab.h.

Here is the call graph for this function:

◆ sendProgress()

void onelab::remoteNetworkClient::sendProgress ( const std::string &  msg)
inlinevirtual

Reimplemented from onelab::client.

Definition at line 1717 of file onelab.h.

Here is the call graph for this function:

◆ sendWarning()

void onelab::remoteNetworkClient::sendWarning ( const std::string &  msg)
inlinevirtual

Reimplemented from onelab::client.

Definition at line 1709 of file onelab.h.

Here is the call graph for this function:

◆ set() [1/2]

virtual bool onelab::remoteNetworkClient::set ( const number p)
inlinevirtual

Implements onelab::client.

Definition at line 1673 of file onelab.h.

Here is the call graph for this function:

◆ set() [2/2]

virtual bool onelab::remoteNetworkClient::set ( const string p)
inlinevirtual

Implements onelab::client.

Definition at line 1674 of file onelab.h.

Here is the call graph for this function:

◆ setAndAppendChoices() [1/2]

virtual bool onelab::remoteNetworkClient::setAndAppendChoices ( const number p)
inlinevirtual

Implements onelab::client.

Definition at line 1683 of file onelab.h.

Here is the call graph for this function:

◆ setAndAppendChoices() [2/2]

virtual bool onelab::remoteNetworkClient::setAndAppendChoices ( const string p)
inlinevirtual

Implements onelab::client.

Definition at line 1690 of file onelab.h.

Here is the call graph for this function:

◆ waitOnSubClients()

void onelab::remoteNetworkClient::waitOnSubClients ( )
inline

Definition at line 1609 of file onelab.h.

Referenced by runSubClient(), and ~remoteNetworkClient().

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

Member Data Documentation

◆ _gmshClient

◆ _numSubClients

int onelab::remoteNetworkClient::_numSubClients
private

Definition at line 1526 of file onelab.h.

Referenced by runNonBlockingSubClient(), and waitOnSubClients().

◆ _serverAddress

std::string onelab::remoteNetworkClient::_serverAddress
private

Definition at line 1522 of file onelab.h.

Referenced by remoteNetworkClient().


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