View on GitHub

Vistle

Distributed Data-parallel Scientific Visualization in VR

Namespaces | Macros | Functions
messages.cpp File Reference
#include <vistle/util/tools.h>
#include "availablemodule.h"
#include "message.h"
#include "messages.h"
#include "parameter.h"
#include "port.h"
#include "shm.h"
#include <cassert>
#include <boost/uuid/random_generator.hpp>
#include <boost/uuid/nil_generator.hpp>
#include <boost/uuid/uuid_io.hpp>
#include <boost/lexical_cast.hpp>
#include <boost/archive/basic_archive.hpp>
#include "messagepayloadtemplates.h"
#include <vistle/util/vecstreambuf.h>
#include <vistle/util/crypto.h>
#include <algorithm>
Include dependency graph for messages.cpp:

Namespaces

namespace  vistle
 
namespace  vistle::message
 

Macros

#define COPY_STRING(dst, src)
 

Functions

template<typename T >
static T vistle::message::min (T a, T b)
 
template V_COREEXPORT buffer vistle::message::addPayload< std::string > (Message &message, const std::string &payload)
 
template V_COREEXPORT buffer vistle::message::addPayload< SendText::Payload > (Message &message, const SendText::Payload &payload)
 
template V_COREEXPORT buffer vistle::message::addPayload< SetParameterChoices::Payload > (Message &message, const SetParameterChoices::Payload &payload)
 
template<class Payload >
Payload vistle::message::getPayload (const buffer &data)
 
V_COREEXPORT std::ostream & vistle::message::operator<< (std::ostream &s, const Message &msg)
 

Macro Definition Documentation

◆ COPY_STRING

#define COPY_STRING (   dst,
  src 
)
Value:
do { \
const size_t size = min(src.size(), dst.size() - 1); \
src.copy(dst.data(), size); \
dst[size] = '\0'; \
assert(src.size() < dst.size()); \
} while (false)
static T min(T a, T b)
Definition: messages.cpp:28