Overview Tutorial API reference Examples Build Download ZmqMessage 0.1 - 21 Oct 2011

include/zmqmessage/MetaTypes.hpp File Reference

Go to the source code of this file.

Namespaces

namespace  ZmqMessage
namespace  ZmqMessage::Private

Classes

struct  ZmqMessage::Private::EnableIf<, T >
struct  ZmqMessage::Private::EnableIf< true, T >
struct  ZmqMessage::Private::DisableIf<, T >
struct  ZmqMessage::Private::DisableIf< false, T >
struct  ZmqMessage::Private::IsStr< T >
struct  ZmqMessage::Private::IsStr< T >::No
struct  ZmqMessage::Private::IsRaw< T >
struct  ZmqMessage::Private::IsRaw< T >::No

Defines

#define ZMQMESSAGE_BINARY_TYPE(type_name)
#define ZMQMESSAGE_TEXT_TYPE(type_name)


Detailed Description

Copyright (c) 2010-2011 Phorm, Inc. GNU LGPL v 3.0, see http://www.gnu.org/licenses/lgpl-3.0-standalone.html
Author:
Andrey Skryabin <andrew@zmqmessage.org>, et al.

Define Documentation

#define ZMQMESSAGE_BINARY_TYPE ( type_name   ) 

Value:

namespace ZmqMessage \
{ \
  namespace Private \
  { \
    template <> \
    struct IsRaw<type_name> \
    { \
    static const bool value = true; \
    }; \
  } \
}
Declares particular type as 'binary'. It will always be sent and received in binary mode, independent of current stream state. See zm_modes modes docs for details.
Examples:
zserialize.cpp.

#define ZMQMESSAGE_TEXT_TYPE ( type_name   ) 

Value:

namespace ZmqMessage \
{ \
  namespace Private \
  { \
    template <> \
    struct IsRaw<type_name> \
    { \
    static const bool value = false; \
    }; \
  } \
}
Declares particular type as 'text'. It will always be sent and received in text mode, independent of current stream state. See zm_modes modes docs for details.


ZmqMessage 0.1 — open source software, support@zmqmessage.org