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

#include <noipc.h>

Inheritance diagram for VesselLogbookOutputMessage:
OutputMessage OutputMessage

Public Member Functions

 VesselLogbookOutputMessage (unsigned int, Vessel *, const std::vector< Population * > &, std::vector< int > &)
 
 VesselLogbookOutputMessage (unsigned int _tstep, Vessel *v, const std::vector< Population * > &populations, std::vector< int > &implicit_pops)
 
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...
 
virtual 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

◆ VesselLogbookOutputMessage() [1/2]

VesselLogbookOutputMessage::VesselLogbookOutputMessage ( unsigned int  ,
Vessel ,
const std::vector< Population * > &  ,
std::vector< int > &   
)
inline

◆ VesselLogbookOutputMessage() [2/2]

VesselLogbookOutputMessage::VesselLogbookOutputMessage ( unsigned int  _tstep,
Vessel v,
const std::vector< Population * > &  populations,
std::vector< int > &  implicit_pops 
)

Member Function Documentation

◆ getType()

virtual IpcMessageTypes VesselLogbookOutputMessage::getType ( ) const
inlinevirtual

Implements OutputMessage.

◆ process()

bool VesselLogbookOutputMessage::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 VesselLogbookOutputMessage::send ( std::ostream &  )
virtual

the operation to perform.

Returns
false if error.

Implements OutputMessage.

◆ sendBinary()

size_t VesselLogbookOutputMessage::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: