forked from HBPVIS/ZeroEQ
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vocabulary.cpp
64 lines (50 loc) · 1.3 KB
/
vocabulary.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
/* Copyright (c) 2014-2016, Human Brain Project
* Juan Hernando <jhernando@fi.upm.es>
* Daniel Nachbaur <daniel.nachbaur@epfl.ch>
*/
#include "vocabulary.h"
#include "detail/vocabulary.h"
#include "event.h"
#include "eventDescriptor.h"
namespace zeroeq
{
namespace vocabulary
{
Event serializeVocabulary( const EventDescriptors& vocabulary )
{
return detail::serializeVocabulary( vocabulary );
}
EventDescriptors deserializeVocabulary( const Event& event )
{
return detail::deserializeVocabulary( event );
}
Event serializeRequest( const uint128_t& eventType )
{
return detail::serializeRequest( eventType );
}
uint128_t deserializeRequest( const Event& event )
{
return detail::deserializeRequest( event );
}
Event serializeEcho( const std::string& message )
{
return detail::serializeEcho( message );
}
std::string deserializeEcho( const Event& event )
{
return detail::deserializeEcho( event );
}
Event serializeJSON( const uint128_t& type, const std::string& json )
{
return detail::serializeJSON( type, json );
}
std::string deserializeJSON( const Event& event )
{
return detail::deserializeJSON( event );
}
void registerEvent( const uint128_t& type, const std::string& schema )
{
detail::registerEvent( type, schema );
}
}
}