1#ifndef RTOSC_TYPED_MESSAGE_H
2#define RTOSC_TYPED_MESSAGE_H
3#include <rtosc/typestring.hh>
13template<
class... Types>
class rtMsg;
27 operator bool(
void){
return this->
msg;}
35 static std::true_type
size;
41 static std::false_type
size;
74template<
int i,
class This,
class... Rest>
87template<
class This,
class... Rest>
111template<
class This,
class... Rest>
118template <
size_t Index,
class This,
class... Rest>
140template<
size_t Index,
class... Types>
inline
141 typename osc_element<Index, rtMsg<Types...>>
::type
145 throw std::invalid_argument(
"Message Does Not Match Spec");
150template<
class... Types>
inline
151 typename osc_element<0, rtMsg<Types...>>
::type
157template<
class... Types>
inline
158 typename osc_element<1, rtMsg<Types...>>
::type
float arg(const fft_t *freqs, off_t x)
Definition OscilGen.cpp:58
CAdPlugDatabase::CRecord::RecordType type
Definition adplugdb.cpp:93
rtMsg(const char *arg=NULL, const char *spec=NULL)
Definition typed-message.h:93
This This_
Definition typed-message.h:91
rtMsg< Rest... > T
Definition typed-message.h:92
rtMsg(const char *arg, const char *spec, bool)
Definition typed-message.h:100
rtMsg(const char *arg=NULL, const char *spec=NULL, bool _=false)
Definition typed-message.h:19
const char * msg
Definition typed-message.h:29
Definition typed-message.h:13
register unsigned i
Definition inflate.c:1575
const char * rtosc_match_path(const char *pattern, const char *msg, const char **path_end)
Definition dispatch.c:70
#define _(msgid)
Definition getopt.c:86
int int32_t
Definition mid.cpp:97
const char * msg
Definition missing_descriptor.c:20
bool valid_char< int32_t >(char c)
Definition typed-message.h:51
bool valid_char< float >(char c)
Definition typed-message.h:54
bool validate(const char *arg)
Definition typed-message.h:57
osc_element< Index, rtMsg< Types... > >::type get(rtMsg< Types... > &Tuple)
Definition typed-message.h:142
bool valid_char(char)
Definition typed-message.h:45
osc_element< 1, rtMsg< Types... > >::type second(rtMsg< Types... > &Tuple)
Definition typed-message.h:159
osc_element< 0, rtMsg< Types... > >::type first(rtMsg< Types... > &Tuple)
Definition typed-message.h:152
bool valid_char< const char * >(char c)
Definition typed-message.h:48
bool match_path(std::false_type, const char *arg)
Definition typed-message.h:63
T rt_get_impl(const char *msg, size_t i)
#define false
Definition ordinals.h:83
unsigned rtosc_narguments(const char *msg)
Definition rtosc.c:19
char rtosc_type(const char *msg, unsigned nargument)
Definition rtosc.c:67
rtosc_arg_t rtosc_argument(const char *msg, unsigned idx)
Definition rtosc.c:732
static std::false_type size
Definition typed-message.h:41
Definition typed-message.h:34
static std::true_type size
Definition typed-message.h:35
Definition typed-message.h:10
Definition typed-message.h:11
This type
Definition typed-message.h:114
Definition typed-message.h:108
int32_t i
Definition rtosc.h:47
const char * s
Definition rtosc.h:54
return c
Definition crypt.c:175
#define void
Definition unzip.h:396