Obsidian
Probabilistic Geophysical Joint Inversion
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
messages.hpp File Reference

Contains the functions to seralise and unserialise GDF datatypes. More...

#include <string>
#include <vector>
#include <boost/range/adaptor/reversed.hpp>
#include "datatypes.hpp"
Include dependency graph for messages.hpp:
This graph shows which files directly or indirectly include this file:

Classes

class  stateline::comms::Message
 Define valid messages to send on the GDFP-SW (GDF Server-Worker Protocol) More...
 

Namespaces

 stateline
 
 stateline::comms
 

Enumerations

enum  stateline::comms::Subject : uint {
  HELLO = 0, HEARTBEAT = 1, PROBLEMSPEC = 2, JOBREQUEST = 3,
  JOB = 4, JOBSWAP = 5, ALLDONE = 6, GOODBYE = 7
}
 Defines the bytes actually sent in the subject frame of GDF messages. Allows us to use a switch statement on the subject.
 

Functions

std::string stateline::comms::subjectString (Subject s)
 Convert a subject into a string. More...
 
std::ostream & stateline::comms::operator<< (std::ostream &os, const Message &m)
 Print a message for logging and debugging purposes. More...
 
std::string stateline::comms::addressAsString (const std::vector< std::string > &addr)
 Convert an address to a string. More...
 
void stateline::comms::print (const Message &m)
 Print a message for logging and debugging purposes. More...
 

Detailed Description

Contains the functions to seralise and unserialise GDF datatypes.

Author
Lachlan McCalman
Date
2014
License:
Affero General Public License version 3 or later