framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
fixed_tag.hpp
Go to the documentation of this file.
1 // Copyright (C) 2013 iwg molw5
2 // For conditions of distribution and use, see copyright notice in COPYING
3 
13 #pragma once
14 
15 #include <cassert>
16 #include <type_traits>
17 #include <string.h>
18 
20 
21 namespace framework
22 {
23  namespace protocol_buffers
24  {
28  template <unsigned long ID, unsigned char WireType, typename Enabler = void>
29  struct fixed_tag;
30 
34  template <typename Tag, typename Output>
36  bool write_tag (Output& out);
37 
41  template <typename Tag>
43  bool write_tag (char* begin, char* end, char*& it);
44 
48  template <typename Tag>
50  bool expect_tag (char const* begin, char const* end, char const*& it);
51  }
52 }
53 
54 #include <framework/protocol_buffers/fixed_tag.inl>