DISPLACE  1.0
A spatial model of fisheries to help sustainable fishing and maritime spatial planning
QuitMessage Class Reference
Inheritance diagram for QuitMessage:
OutputMessage

Public Member Functions

 QuitMessage ()
 
 ~QuitMessage ()
 
virtual IpcMessageTypes getType () const
 
bool process ()
 perform an operation non related to the gui feedback channel More...
 
bool send (std::ostream &)
 the operation to perform. More...
 
size_t sendBinary (void *buffer, size_t maxlen)
 formats a binary block of data to be sent across the IPC stream More...
 
- Public Member Functions inherited from OutputMessage
virtual ~OutputMessage ()
 
 OutputMessage ()
 
virtual ~OutputMessage ()
 
template<typename T >
size_t put (void *buffer, size_t index, T v)
 

Constructor & Destructor Documentation

◆ QuitMessage()

QuitMessage::QuitMessage ( )
inline

◆ ~QuitMessage()

QuitMessage::~QuitMessage ( )
inline

Member Function Documentation

◆ getType()

virtual IpcMessageTypes QuitMessage::getType ( ) const
inlinevirtual

Implements OutputMessage.

◆ process()

bool QuitMessage::process ( )
inlinevirtual

perform an operation non related to the gui feedback channel

Returns
false if the calling function should exit. True otherwise.

Implements OutputMessage.

◆ send()

bool QuitMessage::send ( std::ostream &  )
inlinevirtual

the operation to perform.

Returns
false if error.

Implements OutputMessage.

◆ sendBinary()

size_t QuitMessage::sendBinary ( void *  buffer,
size_t  maxlen 
)
inlinevirtual

formats a binary block of data to be sent across the IPC stream

  • buffer address of the data buffer
  • maxlen the maximum size of the block
    Returns
    lenght of the block, or -1 if the process should exit (due to error, or other)

Implements OutputMessage.


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