DISPLACE  1.0
A spatial model of fisheries to help sustainable fishing and maritime spatial planning
MoveVesselOutputMessage Class Reference

#include <movevesseloutputmessage.h>

Inheritance diagram for MoveVesselOutputMessage:
OutputMessage OutputMessage

Public Member Functions

 MoveVesselOutputMessage (int _tstep, Vessel *vessel)
 
 ~MoveVesselOutputMessage ()
 
virtual IpcMessageTypes getType () const
 
bool process ()
 perform an operation non related to the gui feedback channel More...
 
bool send (std::ostream &strm)
 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...
 
 MoveVesselOutputMessage (int, void *)
 
- 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

◆ MoveVesselOutputMessage() [1/2]

MoveVesselOutputMessage::MoveVesselOutputMessage ( int  _tstep,
Vessel vessel 
)

◆ ~MoveVesselOutputMessage()

MoveVesselOutputMessage::~MoveVesselOutputMessage ( )
inline

◆ MoveVesselOutputMessage() [2/2]

MoveVesselOutputMessage::MoveVesselOutputMessage ( int  ,
void *   
)
inline

Member Function Documentation

◆ getType()

virtual IpcMessageTypes MoveVesselOutputMessage::getType ( ) const
inlinevirtual

Implements OutputMessage.

◆ process()

bool MoveVesselOutputMessage::process ( )
virtual

perform an operation non related to the gui feedback channel

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

Implements OutputMessage.

◆ send()

bool MoveVesselOutputMessage::send ( std::ostream &  )
virtual

the operation to perform.

Returns
false if error.

Implements OutputMessage.

◆ sendBinary()

size_t MoveVesselOutputMessage::sendBinary ( void *  buffer,
size_t  maxlen 
)
virtual

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 files: