├── doc ├── html │ ├── bc_s.png │ ├── open.png │ ├── closed.png │ ├── nav_f.png │ ├── nav_h.png │ ├── tab_a.png │ ├── tab_b.png │ ├── tab_h.png │ ├── tab_s.png │ ├── doxygen.png │ ├── search │ │ ├── close.png │ │ ├── mag_sel.png │ │ ├── search_l.png │ │ ├── search_m.png │ │ ├── search_r.png │ │ ├── nomatches.html │ │ ├── all_74.html │ │ ├── files_74.html │ │ ├── classes_62.html │ │ ├── classes_6d.html │ │ ├── all_68.html │ │ ├── all_6e.html │ │ ├── defines_68.html │ │ ├── defines_6e.html │ │ ├── variables_62.html │ │ ├── all_64.html │ │ ├── all_63.html │ │ ├── functions_64.html │ │ ├── functions_63.html │ │ ├── functions_6d.html │ │ ├── functions_62.html │ │ ├── all_6d.html │ │ ├── all_61.html │ │ ├── functions_61.html │ │ ├── all_62.html │ │ ├── all_73.html │ │ ├── functions_73.html │ │ └── search.css │ ├── tabs.css │ ├── installdox │ ├── index.html │ ├── files.html │ ├── globals_defs.html │ ├── functions_vars.html │ ├── annotated.html │ ├── globals.html │ ├── classes.html │ ├── functions_func.html │ ├── functions.html │ ├── classtnyosc_1_1_bundle-members.html │ ├── tnyosc_09_09_8h.html │ ├── tnyosc_8hpp.html │ └── classtnyosc_1_1_message-members.html └── latex │ ├── files.tex │ ├── annotated.tex │ ├── Makefile │ ├── refman.tex │ ├── tnyosc_09_09_8h.tex │ ├── tnyosc_8hpp.tex │ ├── classtnyosc_1_1_bundle.tex │ ├── doxygen.sty │ └── classtnyosc_1_1_message.tex ├── .gitignore ├── LICENSE ├── tests ├── tnyosc-dispatch_test.cc ├── tnyosc_net_test.cc ├── tnyosc_test.cc └── pattern_match_test.cc ├── include └── tnyosc-dispatch.hpp ├── README.md └── src └── tnyosc-dispatch.cc /doc/html/bc_s.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuvwxy/tnyosc/HEAD/doc/html/bc_s.png -------------------------------------------------------------------------------- /doc/html/open.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuvwxy/tnyosc/HEAD/doc/html/open.png -------------------------------------------------------------------------------- /doc/html/closed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuvwxy/tnyosc/HEAD/doc/html/closed.png -------------------------------------------------------------------------------- /doc/html/nav_f.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuvwxy/tnyosc/HEAD/doc/html/nav_f.png -------------------------------------------------------------------------------- /doc/html/nav_h.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuvwxy/tnyosc/HEAD/doc/html/nav_h.png -------------------------------------------------------------------------------- /doc/html/tab_a.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuvwxy/tnyosc/HEAD/doc/html/tab_a.png -------------------------------------------------------------------------------- /doc/html/tab_b.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuvwxy/tnyosc/HEAD/doc/html/tab_b.png -------------------------------------------------------------------------------- /doc/html/tab_h.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuvwxy/tnyosc/HEAD/doc/html/tab_h.png -------------------------------------------------------------------------------- /doc/html/tab_s.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuvwxy/tnyosc/HEAD/doc/html/tab_s.png -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | 2 | .DS_Store 3 | 4 | tests/tnyosc_net_test 5 | tests/tnyosc-dispatch_test 6 | -------------------------------------------------------------------------------- /doc/html/doxygen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuvwxy/tnyosc/HEAD/doc/html/doxygen.png -------------------------------------------------------------------------------- /doc/html/search/close.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuvwxy/tnyosc/HEAD/doc/html/search/close.png -------------------------------------------------------------------------------- /doc/html/search/mag_sel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuvwxy/tnyosc/HEAD/doc/html/search/mag_sel.png -------------------------------------------------------------------------------- /doc/html/search/search_l.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuvwxy/tnyosc/HEAD/doc/html/search/search_l.png -------------------------------------------------------------------------------- /doc/html/search/search_m.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuvwxy/tnyosc/HEAD/doc/html/search/search_m.png -------------------------------------------------------------------------------- /doc/html/search/search_r.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tuvwxy/tnyosc/HEAD/doc/html/search/search_r.png -------------------------------------------------------------------------------- /doc/latex/files.tex: -------------------------------------------------------------------------------- 1 | \section{File List} 2 | Here is a list of all documented files with brief descriptions:\begin{DoxyCompactList} 3 | \item\contentsline{section}{\hyperlink{tnyosc_8hpp}{tnyosc.hpp} (Tnyosc main (and only) header file )}{\pageref{tnyosc_8hpp}}{} 4 | \end{DoxyCompactList} 5 | -------------------------------------------------------------------------------- /doc/latex/annotated.tex: -------------------------------------------------------------------------------- 1 | \section{Class List} 2 | Here are the classes, structs, unions and interfaces with brief descriptions:\begin{DoxyCompactList} 3 | \item\contentsline{section}{\hyperlink{classtnyosc_1_1_bundle}{tnyosc::Bundle} }{\pageref{classtnyosc_1_1_bundle}}{} 4 | \item\contentsline{section}{\hyperlink{classtnyosc_1_1_message}{tnyosc::Message} }{\pageref{classtnyosc_1_1_message}}{} 5 | \end{DoxyCompactList} 6 | -------------------------------------------------------------------------------- /doc/html/search/nomatches.html: -------------------------------------------------------------------------------- 1 | 2 |
|
22 | tnyos 1
23 | Tiny header-only library for formatting Open Sound Control messages.
24 | |
25 |
1.7.4
76 |
77 |
78 |
--------------------------------------------------------------------------------
/doc/html/files.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | |
22 | tnyos 1
23 | Tiny header-only library for formatting Open Sound Control messages.
24 | |
25 |
| tnyosc.hpp [code] | Tnyosc main (and only) header file |
1.7.4
85 |
86 |
87 |
--------------------------------------------------------------------------------
/doc/html/globals_defs.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | |
22 | tnyos 1
23 | Tiny header-only library for formatting Open Sound Control messages.
24 | |
25 |
1.7.4
92 |
93 |
94 |
--------------------------------------------------------------------------------
/doc/html/functions_vars.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | |
22 | tnyosc++ 1
23 | Tiny Open Sound Control header-only library
24 | |
25 |
1.7.4
91 |
92 |
93 |
--------------------------------------------------------------------------------
/doc/latex/tnyosc_09_09_8h.tex:
--------------------------------------------------------------------------------
1 | \hypertarget{tnyosc_09_09_8h}{
2 | \section{tnyosc++.h File Reference}
3 | \label{tnyosc_09_09_8h}\index{tnyosc++.h@{tnyosc++.h}}
4 | }
5 | {\ttfamily \#include $<$sys/time.h$>$}\par
6 | {\ttfamily \#include $<$arpa/inet.h$>$}\par
7 | {\ttfamily \#include $<$cstddef$>$}\par
8 | {\ttfamily \#include $<$string$>$}\par
9 | {\ttfamily \#include $<$vector$>$}\par
10 | {\ttfamily \#include $<$algorithm$>$}\par
11 | {\ttfamily \#include $<$iostream$>$}\par
12 | {\ttfamily \#include $<$inttypes.h$>$}\par
13 | \subsection*{Classes}
14 | \begin{DoxyCompactItemize}
15 | \item
16 | class \hyperlink{classtnyosc_1_1_message}{tnyosc::Message}
17 | \item
18 | class \hyperlink{classtnyosc_1_1_bundle}{tnyosc::Bundle}
19 | \end{DoxyCompactItemize}
20 | \subsection*{Defines}
21 | \begin{DoxyCompactItemize}
22 | \item
23 | \#define \hyperlink{tnyosc_09_09_8h_a3cfcf123d4ead264289232f91f2c9ca5}{ntohll}(x)
24 | \begin{DoxyCompactList}\small\item\em Convert 64-\/bit little-\/endian integer to a big-\/endian network format. \end{DoxyCompactList}\item
25 | \hypertarget{tnyosc_09_09_8h_a9f4bf0773c45ad9a9753a1b784a13fbb}{
26 | \#define \hyperlink{tnyosc_09_09_8h_a9f4bf0773c45ad9a9753a1b784a13fbb}{htonll}(x)~ntohll(x)}
27 | \label{tnyosc_09_09_8h_a9f4bf0773c45ad9a9753a1b784a13fbb}
28 |
29 | \begin{DoxyCompactList}\small\item\em Convert 64-\/bit big-\/endian network format to a little-\/endian integer. \end{DoxyCompactList}\end{DoxyCompactItemize}
30 | \subsection*{Typedefs}
31 | \begin{DoxyCompactItemize}
32 | \item
33 | \hypertarget{namespacetnyosc_a116950081bc009f915bb3373356abbe3}{
34 | typedef std::vector$<$ unsigned char $>$ \hyperlink{namespacetnyosc_a116950081bc009f915bb3373356abbe3}{tnyosc::ByteArray}}
35 | \label{namespacetnyosc_a116950081bc009f915bb3373356abbe3}
36 |
37 | \begin{DoxyCompactList}\small\item\em A byte array type internally used in the tnyosc library. \end{DoxyCompactList}\end{DoxyCompactItemize}
38 | \subsection*{Functions}
39 | \begin{DoxyCompactItemize}
40 | \item
41 | \hypertarget{namespacetnyosc_ae97db9399ea5f368ce35eccfdd973839}{
42 | int32\_\-t \hyperlink{namespacetnyosc_ae97db9399ea5f368ce35eccfdd973839}{tnyosc::htonf} (float x)}
43 | \label{namespacetnyosc_ae97db9399ea5f368ce35eccfdd973839}
44 |
45 | \begin{DoxyCompactList}\small\item\em Convert 32-\/bit float to a big-\/endian network format. \end{DoxyCompactList}\item
46 | \hypertarget{namespacetnyosc_a518088812da6482f64408ddf8c6aeaca}{
47 | int64\_\-t \hyperlink{namespacetnyosc_a518088812da6482f64408ddf8c6aeaca}{tnyosc::htond} (double x)}
48 | \label{namespacetnyosc_a518088812da6482f64408ddf8c6aeaca}
49 |
50 | \begin{DoxyCompactList}\small\item\em Convert 64-\/bit float (double) to a big-\/endian network format. \end{DoxyCompactList}\item
51 | \hypertarget{namespacetnyosc_a59992cd0ce1b8c8a1347650a19eb132b}{
52 | double \hyperlink{namespacetnyosc_a59992cd0ce1b8c8a1347650a19eb132b}{tnyosc::ntohf} (int32\_\-t x)}
53 | \label{namespacetnyosc_a59992cd0ce1b8c8a1347650a19eb132b}
54 |
55 | \begin{DoxyCompactList}\small\item\em Convert 32-\/bit big-\/endian network format to float. \end{DoxyCompactList}\item
56 | \hypertarget{namespacetnyosc_a1057ce2e8aba3879f37c9802b1df71a0}{
57 | double \hyperlink{namespacetnyosc_a1057ce2e8aba3879f37c9802b1df71a0}{tnyosc::ntohd} (int64\_\-t x)}
58 | \label{namespacetnyosc_a1057ce2e8aba3879f37c9802b1df71a0}
59 |
60 | \begin{DoxyCompactList}\small\item\em Convert 64-\/bit big-\/endian network format to double. \end{DoxyCompactList}\item
61 | const unsigned char $\ast$ \hyperlink{namespacetnyosc_ac90f34c48a37b1200b4e989d38c30b11}{tnyosc::get\_\-pointer} (const ByteArray \&array)
62 | \item
63 | uint64\_\-t \hyperlink{namespacetnyosc_a18579b1675837c5dc683234f13ac1a90}{tnyosc::get\_\-current\_\-ntp\_\-time} ()
64 | \end{DoxyCompactItemize}
65 |
66 |
67 | \subsection{Detailed Description}
68 | tnyosc++.h
69 |
70 | The main (and only) tnyosc++ file for creating Open Sound Control 1.0 and 1.1 Specification compliant messages. tnyosc++ provides simple and clean C++ API.
71 |
72 | \begin{DoxyAuthor}{Author}
73 | Toshiro Yamada
74 | \end{DoxyAuthor}
75 |
76 |
77 | \subsection{Define Documentation}
78 | \hypertarget{tnyosc_09_09_8h_a3cfcf123d4ead264289232f91f2c9ca5}{
79 | \index{tnyosc++.h@{tnyosc++.h}!ntohll@{ntohll}}
80 | \index{ntohll@{ntohll}!tnyosc++.h@{tnyosc++.h}}
81 | \subsubsection[{ntohll}]{\setlength{\rightskip}{0pt plus 5cm}\#define ntohll(
82 | \begin{DoxyParamCaption}
83 | \item[{}]{x}
84 | \end{DoxyParamCaption}
85 | )}}
86 | \label{tnyosc_09_09_8h_a3cfcf123d4ead264289232f91f2c9ca5}
87 | {\bfseries Value:}
88 | \begin{DoxyCode}
89 | (((int64_t)(ntohl((int32_t)((x << 32) >> 32))) << 32) | \
90 | (uint32_t)ntohl(((int32_t)(x >> 32))))
91 | \end{DoxyCode}
92 |
93 |
94 | Convert 64-\/bit little-\/endian integer to a big-\/endian network format.
95 |
96 |
--------------------------------------------------------------------------------
/doc/html/annotated.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | |
22 | tnyos 1
23 | Tiny header-only library for formatting Open Sound Control messages.
24 | |
25 |
| tnyosc::Bundle | |
| tnyosc::Message |
1.7.4
87 |
88 |
89 |
--------------------------------------------------------------------------------
/doc/html/globals.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | |
22 | tnyos 1
23 | Tiny header-only library for formatting Open Sound Control messages.
24 | |
25 |
1.7.4
92 |
93 |
94 |
--------------------------------------------------------------------------------
/doc/latex/tnyosc_8hpp.tex:
--------------------------------------------------------------------------------
1 | \hypertarget{tnyosc_8hpp}{
2 | \section{tnyosc.hpp File Reference}
3 | \label{tnyosc_8hpp}\index{tnyosc.hpp@{tnyosc.hpp}}
4 | }
5 |
6 |
7 | tnyosc main (and only) header file
8 |
9 |
10 | {\ttfamily \#include $<$sys/time.h$>$}\par
11 | {\ttfamily \#include $<$arpa/inet.h$>$}\par
12 | {\ttfamily \#include $<$cstddef$>$}\par
13 | {\ttfamily \#include $<$string$>$}\par
14 | {\ttfamily \#include $<$vector$>$}\par
15 | {\ttfamily \#include $<$algorithm$>$}\par
16 | {\ttfamily \#include $<$iostream$>$}\par
17 | {\ttfamily \#include $<$inttypes.h$>$}\par
18 | \subsection*{Classes}
19 | \begin{DoxyCompactItemize}
20 | \item
21 | class \hyperlink{classtnyosc_1_1_message}{tnyosc::Message}
22 | \item
23 | class \hyperlink{classtnyosc_1_1_bundle}{tnyosc::Bundle}
24 | \end{DoxyCompactItemize}
25 | \subsection*{Defines}
26 | \begin{DoxyCompactItemize}
27 | \item
28 | \#define \hyperlink{tnyosc_8hpp_a3cfcf123d4ead264289232f91f2c9ca5}{ntohll}(x)
29 | \begin{DoxyCompactList}\small\item\em Convert 64-\/bit little-\/endian integer to a big-\/endian network format. \end{DoxyCompactList}\item
30 | \hypertarget{tnyosc_8hpp_a9f4bf0773c45ad9a9753a1b784a13fbb}{
31 | \#define \hyperlink{tnyosc_8hpp_a9f4bf0773c45ad9a9753a1b784a13fbb}{htonll}(x)~ntohll(x)}
32 | \label{tnyosc_8hpp_a9f4bf0773c45ad9a9753a1b784a13fbb}
33 |
34 | \begin{DoxyCompactList}\small\item\em Convert 64-\/bit big-\/endian network format to a little-\/endian integer. \end{DoxyCompactList}\end{DoxyCompactItemize}
35 | \subsection*{Typedefs}
36 | \begin{DoxyCompactItemize}
37 | \item
38 | \hypertarget{namespacetnyosc_a116950081bc009f915bb3373356abbe3}{
39 | typedef std::vector$<$ unsigned char $>$ \hyperlink{namespacetnyosc_a116950081bc009f915bb3373356abbe3}{tnyosc::ByteArray}}
40 | \label{namespacetnyosc_a116950081bc009f915bb3373356abbe3}
41 |
42 | \begin{DoxyCompactList}\small\item\em A byte array type internally used in the tnyosc library. \end{DoxyCompactList}\end{DoxyCompactItemize}
43 | \subsection*{Functions}
44 | \begin{DoxyCompactItemize}
45 | \item
46 | \hypertarget{namespacetnyosc_ae97db9399ea5f368ce35eccfdd973839}{
47 | int32\_\-t \hyperlink{namespacetnyosc_ae97db9399ea5f368ce35eccfdd973839}{tnyosc::htonf} (float x)}
48 | \label{namespacetnyosc_ae97db9399ea5f368ce35eccfdd973839}
49 |
50 | \begin{DoxyCompactList}\small\item\em Convert 32-\/bit float to a big-\/endian network format. \end{DoxyCompactList}\item
51 | \hypertarget{namespacetnyosc_a518088812da6482f64408ddf8c6aeaca}{
52 | int64\_\-t \hyperlink{namespacetnyosc_a518088812da6482f64408ddf8c6aeaca}{tnyosc::htond} (double x)}
53 | \label{namespacetnyosc_a518088812da6482f64408ddf8c6aeaca}
54 |
55 | \begin{DoxyCompactList}\small\item\em Convert 64-\/bit float (double) to a big-\/endian network format. \end{DoxyCompactList}\item
56 | \hypertarget{namespacetnyosc_a59992cd0ce1b8c8a1347650a19eb132b}{
57 | double \hyperlink{namespacetnyosc_a59992cd0ce1b8c8a1347650a19eb132b}{tnyosc::ntohf} (int32\_\-t x)}
58 | \label{namespacetnyosc_a59992cd0ce1b8c8a1347650a19eb132b}
59 |
60 | \begin{DoxyCompactList}\small\item\em Convert 32-\/bit big-\/endian network format to float. \end{DoxyCompactList}\item
61 | \hypertarget{namespacetnyosc_a1057ce2e8aba3879f37c9802b1df71a0}{
62 | double \hyperlink{namespacetnyosc_a1057ce2e8aba3879f37c9802b1df71a0}{tnyosc::ntohd} (int64\_\-t x)}
63 | \label{namespacetnyosc_a1057ce2e8aba3879f37c9802b1df71a0}
64 |
65 | \begin{DoxyCompactList}\small\item\em Convert 64-\/bit big-\/endian network format to double. \end{DoxyCompactList}\item
66 | const unsigned char $\ast$ \hyperlink{namespacetnyosc_ac90f34c48a37b1200b4e989d38c30b11}{tnyosc::get\_\-pointer} (const ByteArray \&array)
67 | \item
68 | uint64\_\-t \hyperlink{namespacetnyosc_a18579b1675837c5dc683234f13ac1a90}{tnyosc::get\_\-current\_\-ntp\_\-time} ()
69 | \end{DoxyCompactItemize}
70 |
71 |
72 | \subsection{Detailed Description}
73 | tnyosc main (and only) header file \begin{DoxyAuthor}{Author}
74 | Toshiro Yamada
75 | \end{DoxyAuthor}
76 | tnyosc is a header-\/only Open Sound Control library written in C++ for creating OSC-\/compliant messages. tnyosc supports Open Sound Control 1.0 and 1.1 types and other nonstandard types, and bundles. Note that tnyosc does not include code to actually send or receive OSC messages.
77 |
78 | \subsection{Define Documentation}
79 | \hypertarget{tnyosc_8hpp_a3cfcf123d4ead264289232f91f2c9ca5}{
80 | \index{tnyosc.hpp@{tnyosc.hpp}!ntohll@{ntohll}}
81 | \index{ntohll@{ntohll}!tnyosc.hpp@{tnyosc.hpp}}
82 | \subsubsection[{ntohll}]{\setlength{\rightskip}{0pt plus 5cm}\#define ntohll(
83 | \begin{DoxyParamCaption}
84 | \item[{}]{x}
85 | \end{DoxyParamCaption}
86 | )}}
87 | \label{tnyosc_8hpp_a3cfcf123d4ead264289232f91f2c9ca5}
88 | {\bfseries Value:}
89 | \begin{DoxyCode}
90 | (((int64_t)(ntohl((int32_t)((x << 32) >> 32))) << 32) | \
91 | (uint32_t)ntohl(((int32_t)(x >> 32))))
92 | \end{DoxyCode}
93 |
94 |
95 | Convert 64-\/bit little-\/endian integer to a big-\/endian network format.
96 |
97 |
--------------------------------------------------------------------------------
/include/tnyosc-dispatch.hpp:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2011 Toshiro Yamada
2 | // All rights reserved.
3 | //
4 | // Redistribution and use in source and binary forms, with or without
5 | // modification, are permitted provided that the following conditions
6 | // are met:
7 | //
8 | // 1. Redistributions of source code must retain the above copyright
9 | // notice, this list of conditions and the following disclaimer.
10 | // 2. Redistributions in binary form must reproduce the above copyright
11 | // notice, this list of conditions and the following disclaimer in the
12 | // documentation and/or other materials provided with the distribution.
13 | // 3. The name of the author may not be used to endorse or promote products
14 | // derived from this software without specific prior written permission.
15 | //
16 | // THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR
17 | // IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
18 | // OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
19 | // IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
20 | // INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
21 | // NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25 | // THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 |
27 | /// @file tnyosc-dispatch.hpp
28 | /// @brief tnyosc dispatch header file
29 | /// @author Toshiro Yamada
30 | #ifndef __TNY_OSC_DISPATCH__
31 | #define __TNY_OSC_DISPATCH__
32 |
33 | #include |
22 | tnyos 1
23 | Tiny header-only library for formatting Open Sound Control messages.
24 | |
25 |
1.7.4
88 |
89 |
90 |
--------------------------------------------------------------------------------
/doc/html/search/search.css:
--------------------------------------------------------------------------------
1 | /*---------------- Search Box */
2 |
3 | #FSearchBox {
4 | float: left;
5 | }
6 |
7 | #searchli {
8 | float: right;
9 | display: block;
10 | width: 170px;
11 | height: 36px;
12 | }
13 |
14 | #MSearchBox {
15 | white-space : nowrap;
16 | position: absolute;
17 | float: none;
18 | display: inline;
19 | margin-top: 8px;
20 | right: 0px;
21 | width: 170px;
22 | z-index: 102;
23 | }
24 |
25 | #MSearchBox .left
26 | {
27 | display:block;
28 | position:absolute;
29 | left:10px;
30 | width:20px;
31 | height:19px;
32 | background:url('search_l.png') no-repeat;
33 | background-position:right;
34 | }
35 |
36 | #MSearchSelect {
37 | display:block;
38 | position:absolute;
39 | width:20px;
40 | height:19px;
41 | }
42 |
43 | .left #MSearchSelect {
44 | left:4px;
45 | }
46 |
47 | .right #MSearchSelect {
48 | right:5px;
49 | }
50 |
51 | #MSearchField {
52 | display:block;
53 | position:absolute;
54 | height:19px;
55 | background:url('search_m.png') repeat-x;
56 | border:none;
57 | width:116px;
58 | margin-left:20px;
59 | padding-left:4px;
60 | color: #909090;
61 | outline: none;
62 | font: 9pt Arial, Verdana, sans-serif;
63 | }
64 |
65 | #FSearchBox #MSearchField {
66 | margin-left:15px;
67 | }
68 |
69 | #MSearchBox .right {
70 | display:block;
71 | position:absolute;
72 | right:10px;
73 | top:0px;
74 | width:20px;
75 | height:19px;
76 | background:url('search_r.png') no-repeat;
77 | background-position:left;
78 | }
79 |
80 | #MSearchClose {
81 | display: none;
82 | position: absolute;
83 | top: 4px;
84 | background : none;
85 | border: none;
86 | margin: 0px 4px 0px 0px;
87 | padding: 0px 0px;
88 | outline: none;
89 | }
90 |
91 | .left #MSearchClose {
92 | left: 6px;
93 | }
94 |
95 | .right #MSearchClose {
96 | right: 2px;
97 | }
98 |
99 | .MSearchBoxActive #MSearchField {
100 | color: #000000;
101 | }
102 |
103 | /*---------------- Search filter selection */
104 |
105 | #MSearchSelectWindow {
106 | display: none;
107 | position: absolute;
108 | left: 0; top: 0;
109 | border: 1px solid #90A5CE;
110 | background-color: #F9FAFC;
111 | z-index: 1;
112 | padding-top: 4px;
113 | padding-bottom: 4px;
114 | -moz-border-radius: 4px;
115 | -webkit-border-top-left-radius: 4px;
116 | -webkit-border-top-right-radius: 4px;
117 | -webkit-border-bottom-left-radius: 4px;
118 | -webkit-border-bottom-right-radius: 4px;
119 | -webkit-box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.15);
120 | }
121 |
122 | .SelectItem {
123 | font: 8pt Arial, Verdana, sans-serif;
124 | padding-left: 2px;
125 | padding-right: 12px;
126 | border: 0px;
127 | }
128 |
129 | span.SelectionMark {
130 | margin-right: 4px;
131 | font-family: monospace;
132 | outline-style: none;
133 | text-decoration: none;
134 | }
135 |
136 | a.SelectItem {
137 | display: block;
138 | outline-style: none;
139 | color: #000000;
140 | text-decoration: none;
141 | padding-left: 6px;
142 | padding-right: 12px;
143 | }
144 |
145 | a.SelectItem:focus,
146 | a.SelectItem:active {
147 | color: #000000;
148 | outline-style: none;
149 | text-decoration: none;
150 | }
151 |
152 | a.SelectItem:hover {
153 | color: #FFFFFF;
154 | background-color: #3D578C;
155 | outline-style: none;
156 | text-decoration: none;
157 | cursor: pointer;
158 | display: block;
159 | }
160 |
161 | /*---------------- Search results window */
162 |
163 | iframe#MSearchResults {
164 | width: 60ex;
165 | height: 15em;
166 | }
167 |
168 | #MSearchResultsWindow {
169 | display: none;
170 | position: absolute;
171 | left: 0; top: 0;
172 | border: 1px solid #000;
173 | background-color: #EEF1F7;
174 | }
175 |
176 | /* ----------------------------------- */
177 |
178 |
179 | #SRIndex {
180 | clear:both;
181 | padding-bottom: 15px;
182 | }
183 |
184 | .SREntry {
185 | font-size: 10pt;
186 | padding-left: 1ex;
187 | }
188 |
189 | .SRPage .SREntry {
190 | font-size: 8pt;
191 | padding: 1px 5px;
192 | }
193 |
194 | body.SRPage {
195 | margin: 5px 2px;
196 | }
197 |
198 | .SRChildren {
199 | padding-left: 3ex; padding-bottom: .5em
200 | }
201 |
202 | .SRPage .SRChildren {
203 | display: none;
204 | }
205 |
206 | .SRSymbol {
207 | font-weight: bold;
208 | color: #425E97;
209 | font-family: Arial, Verdana, sans-serif;
210 | text-decoration: none;
211 | outline: none;
212 | }
213 |
214 | a.SRScope {
215 | display: block;
216 | color: #425E97;
217 | font-family: Arial, Verdana, sans-serif;
218 | text-decoration: none;
219 | outline: none;
220 | }
221 |
222 | a.SRSymbol:focus, a.SRSymbol:active,
223 | a.SRScope:focus, a.SRScope:active {
224 | text-decoration: underline;
225 | }
226 |
227 | .SRPage .SRStatus {
228 | padding: 2px 5px;
229 | font-size: 8pt;
230 | font-style: italic;
231 | }
232 |
233 | .SRResult {
234 | display: none;
235 | }
236 |
237 | DIV.searchresults {
238 | margin-left: 10px;
239 | margin-right: 10px;
240 | }
241 |
--------------------------------------------------------------------------------
/tests/pattern_match_test.cc:
--------------------------------------------------------------------------------
1 | #include |
22 | tnyos 1
23 | Tiny header-only library for formatting Open Sound Control messages.
24 | |
25 |
1.7.4
121 |
122 |
123 |
--------------------------------------------------------------------------------
/doc/html/functions.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | |
22 | tnyos 1
23 | Tiny header-only library for formatting Open Sound Control messages.
24 | |
25 |
1.7.4
121 |
122 |
123 |
--------------------------------------------------------------------------------
/doc/html/classtnyosc_1_1_bundle-members.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | |
22 | tnyos 1
23 | Tiny header-only library for formatting Open Sound Control messages.
24 | |
25 |
| append(const Message *message) | tnyosc::Bundle | [inline] |
| append(const Bundle *bundle) | tnyosc::Bundle | [inline] |
| append(const Message &message) (defined in tnyosc::Bundle) | tnyosc::Bundle | [inline] |
| append(const Bundle &bundle) (defined in tnyosc::Bundle) | tnyosc::Bundle | [inline] |
| Bundle() | tnyosc::Bundle | [inline] |
| byte_array() const | tnyosc::Bundle | [inline] |
| clear() | tnyosc::Bundle | [inline] |
| data() const | tnyosc::Bundle | [inline] |
| set_timetag(uint64_t ntp_time) | tnyosc::Bundle | [inline] |
| size() const | tnyosc::Bundle | [inline] |
| ~Bundle() (defined in tnyosc::Bundle) | tnyosc::Bundle | [inline] |
1.7.4
101 |
102 |
103 |
--------------------------------------------------------------------------------
/doc/latex/classtnyosc_1_1_bundle.tex:
--------------------------------------------------------------------------------
1 | \hypertarget{classtnyosc_1_1_bundle}{
2 | \section{tnyosc::Bundle Class Reference}
3 | \label{classtnyosc_1_1_bundle}\index{tnyosc::Bundle@{tnyosc::Bundle}}
4 | }
5 |
6 |
7 | {\ttfamily \#include $<$tnyosc.hpp$>$}
8 |
9 | \subsection*{Public Member Functions}
10 | \begin{DoxyCompactItemize}
11 | \item
12 | \hyperlink{classtnyosc_1_1_bundle_a7075e725afb3941ed1af164d4f4f656f}{Bundle} ()
13 | \item
14 | void \hyperlink{classtnyosc_1_1_bundle_aecc352135263bd0c1984818d342c09b5}{set\_\-timetag} (uint64\_\-t ntp\_\-time)
15 | \item
16 | const ByteArray \& \hyperlink{classtnyosc_1_1_bundle_a115f4db940bb1a04cd9a2c60fdaa039f}{byte\_\-array} () const
17 | \item
18 | const unsigned char $\ast$ \hyperlink{classtnyosc_1_1_bundle_a1df649f2cd0748a7159ea3081dae42b2}{data} () const
19 | \item
20 | size\_\-t \hyperlink{classtnyosc_1_1_bundle_ae172d6cdb7440822f84291c8b96fb00d}{size} () const
21 | \item
22 | \hypertarget{classtnyosc_1_1_bundle_a58ad8eb671f250bc3fa524007f741254}{
23 | void \hyperlink{classtnyosc_1_1_bundle_a58ad8eb671f250bc3fa524007f741254}{clear} ()}
24 | \label{classtnyosc_1_1_bundle_a58ad8eb671f250bc3fa524007f741254}
25 |
26 | \begin{DoxyCompactList}\small\item\em Clears the bundle. \end{DoxyCompactList}\end{DoxyCompactItemize}
27 | \begin{Indent}\paragraph*{Functions for adding Message or Bundle.}
28 | \begin{DoxyCompactItemize}
29 | \item
30 | void \hyperlink{classtnyosc_1_1_bundle_a332d2dae00a991280864834cddc9d0f0}{append} (const \hyperlink{classtnyosc_1_1_message}{Message} $\ast$message)
31 | \item
32 | void \hyperlink{classtnyosc_1_1_bundle_a205a5cc78f1abe251924181ec30411e6}{append} (const \hyperlink{classtnyosc_1_1_bundle}{Bundle} $\ast$bundle)
33 | \item
34 | \hypertarget{classtnyosc_1_1_bundle_a8c27d0978c0c033689ea1e00be1db51f}{
35 | void {\bfseries append} (const \hyperlink{classtnyosc_1_1_message}{Message} \&message)}
36 | \label{classtnyosc_1_1_bundle_a8c27d0978c0c033689ea1e00be1db51f}
37 |
38 | \item
39 | \hypertarget{classtnyosc_1_1_bundle_af189fcf14ac84cbf21d04d5a04fc3b51}{
40 | void {\bfseries append} (const \hyperlink{classtnyosc_1_1_bundle}{Bundle} \&bundle)}
41 | \label{classtnyosc_1_1_bundle_af189fcf14ac84cbf21d04d5a04fc3b51}
42 |
43 | \end{DoxyCompactItemize}
44 | \end{Indent}
45 |
46 |
47 | \subsection{Detailed Description}
48 | This class represents an Open Sound Control bundle message. A bundle can contain any number of \hyperlink{classtnyosc_1_1_message}{Message} and \hyperlink{classtnyosc_1_1_bundle}{Bundle}.
49 |
50 | \subsection{Constructor \& Destructor Documentation}
51 | \hypertarget{classtnyosc_1_1_bundle_a7075e725afb3941ed1af164d4f4f656f}{
52 | \index{tnyosc::Bundle@{tnyosc::Bundle}!Bundle@{Bundle}}
53 | \index{Bundle@{Bundle}!tnyosc::Bundle@{tnyosc::Bundle}}
54 | \subsubsection[{Bundle}]{\setlength{\rightskip}{0pt plus 5cm}tnyosc::Bundle::Bundle (
55 | \begin{DoxyParamCaption}
56 | {}
57 | \end{DoxyParamCaption}
58 | )\hspace{0.3cm}{\ttfamily \mbox{[}inline\mbox{]}}}}
59 | \label{classtnyosc_1_1_bundle_a7075e725afb3941ed1af164d4f4f656f}
60 | Creates a OSC bundle with timestamp set to immediate. Call set\_\-timetag to set a custom timestamp.
61 |
62 | \subsection{Member Function Documentation}
63 | \hypertarget{classtnyosc_1_1_bundle_a332d2dae00a991280864834cddc9d0f0}{
64 | \index{tnyosc::Bundle@{tnyosc::Bundle}!append@{append}}
65 | \index{append@{append}!tnyosc::Bundle@{tnyosc::Bundle}}
66 | \subsubsection[{append}]{\setlength{\rightskip}{0pt plus 5cm}void tnyosc::Bundle::append (
67 | \begin{DoxyParamCaption}
68 | \item[{const {\bf Message} $\ast$}]{message}
69 | \end{DoxyParamCaption}
70 | )\hspace{0.3cm}{\ttfamily \mbox{[}inline\mbox{]}}}}
71 | \label{classtnyosc_1_1_bundle_a332d2dae00a991280864834cddc9d0f0}
72 | Appends an OSC message to this bundle. The message is immediately copied into this bundle and any changes to the message after the call to this function does not affect this bundle.
73 |
74 |
75 | \begin{DoxyParams}[1]{Parameters}
76 | \mbox{\tt in} & {\em message} & A pointer to \hyperlink{classtnyosc_1_1_message}{tnyosc::Message}. \\
77 | \hline
78 | \end{DoxyParams}
79 | \hypertarget{classtnyosc_1_1_bundle_a205a5cc78f1abe251924181ec30411e6}{
80 | \index{tnyosc::Bundle@{tnyosc::Bundle}!append@{append}}
81 | \index{append@{append}!tnyosc::Bundle@{tnyosc::Bundle}}
82 | \subsubsection[{append}]{\setlength{\rightskip}{0pt plus 5cm}void tnyosc::Bundle::append (
83 | \begin{DoxyParamCaption}
84 | \item[{const {\bf Bundle} $\ast$}]{bundle}
85 | \end{DoxyParamCaption}
86 | )\hspace{0.3cm}{\ttfamily \mbox{[}inline\mbox{]}}}}
87 | \label{classtnyosc_1_1_bundle_a205a5cc78f1abe251924181ec30411e6}
88 | Appends an OSC bundle to this bundle. The bundle may include any number of messages or bundles and are immediately copied into this bundle. Any changes to the bundle \hypertarget{classtnyosc_1_1_bundle_a115f4db940bb1a04cd9a2c60fdaa039f}{
89 | \index{tnyosc::Bundle@{tnyosc::Bundle}!byte\_\-array@{byte\_\-array}}
90 | \index{byte\_\-array@{byte\_\-array}!tnyosc::Bundle@{tnyosc::Bundle}}
91 | \subsubsection[{byte\_\-array}]{\setlength{\rightskip}{0pt plus 5cm}const ByteArray\& tnyosc::Bundle::byte\_\-array (
92 | \begin{DoxyParamCaption}
93 | {}
94 | \end{DoxyParamCaption}
95 | ) const\hspace{0.3cm}{\ttfamily \mbox{[}inline\mbox{]}}}}
96 | \label{classtnyosc_1_1_bundle_a115f4db940bb1a04cd9a2c60fdaa039f}
97 | Returns a complete byte array of this OSC bundle as a tnyosc::ByteArray type.
98 |
99 | \begin{DoxyReturn}{Returns}
100 | The OSC bundle as a tnyosc::ByteArray.
101 | \end{DoxyReturn}
102 | \begin{DoxySeeAlso}{See also}
103 | \hyperlink{classtnyosc_1_1_bundle_a1df649f2cd0748a7159ea3081dae42b2}{data}
104 |
105 | \hyperlink{classtnyosc_1_1_bundle_ae172d6cdb7440822f84291c8b96fb00d}{size}
106 | \end{DoxySeeAlso}
107 | \hypertarget{classtnyosc_1_1_bundle_a1df649f2cd0748a7159ea3081dae42b2}{
108 | \index{tnyosc::Bundle@{tnyosc::Bundle}!data@{data}}
109 | \index{data@{data}!tnyosc::Bundle@{tnyosc::Bundle}}
110 | \subsubsection[{data}]{\setlength{\rightskip}{0pt plus 5cm}const unsigned char$\ast$ tnyosc::Bundle::data (
111 | \begin{DoxyParamCaption}
112 | {}
113 | \end{DoxyParamCaption}
114 | ) const\hspace{0.3cm}{\ttfamily \mbox{[}inline\mbox{]}}}}
115 | \label{classtnyosc_1_1_bundle_a1df649f2cd0748a7159ea3081dae42b2}
116 | Returns a pointer to the byte array of this OSC bundle. This call is convenient for actually sending this OSC bundle.
117 |
118 | \begin{DoxyReturn}{Returns}
119 | The OSC bundle as an unsigned char$\ast$.
120 | \end{DoxyReturn}
121 | \begin{DoxySeeAlso}{See also}
122 | \hyperlink{classtnyosc_1_1_bundle_a115f4db940bb1a04cd9a2c60fdaa039f}{byte\_\-array}
123 |
124 | \hyperlink{classtnyosc_1_1_bundle_ae172d6cdb7440822f84291c8b96fb00d}{size}
125 | \end{DoxySeeAlso}
126 |
127 | \begin{DoxyPre}
128 | int sockfd; // initialize UDP socket...
129 | \hyperlink{classtnyosc_1_1_bundle}{tnyosc::Bundle}* bundle; // create a OSC bundle...
130 | send\_to(sockfd, bundle->\hyperlink{classtnyosc_1_1_bundle_a1df649f2cd0748a7159ea3081dae42b2}{data()}, bundle->\hyperlink{classtnyosc_1_1_bundle_ae172d6cdb7440822f84291c8b96fb00d}{size()}, 0);
131 | \end{DoxyPre}
132 | \hypertarget{classtnyosc_1_1_bundle_aecc352135263bd0c1984818d342c09b5}{
133 | \index{tnyosc::Bundle@{tnyosc::Bundle}!set\_\-timetag@{set\_\-timetag}}
134 | \index{set\_\-timetag@{set\_\-timetag}!tnyosc::Bundle@{tnyosc::Bundle}}
135 | \subsubsection[{set\_\-timetag}]{\setlength{\rightskip}{0pt plus 5cm}void tnyosc::Bundle::set\_\-timetag (
136 | \begin{DoxyParamCaption}
137 | \item[{uint64\_\-t}]{ntp\_\-time}
138 | \end{DoxyParamCaption}
139 | )\hspace{0.3cm}{\ttfamily \mbox{[}inline\mbox{]}}}}
140 | \label{classtnyosc_1_1_bundle_aecc352135263bd0c1984818d342c09b5}
141 | Sets timestamp of the bundle.
142 |
143 |
144 | \begin{DoxyParams}[1]{Parameters}
145 | \mbox{\tt in} & {\em ntp\_\-time} & NTP Timestamp \\
146 | \hline
147 | \end{DoxyParams}
148 | \begin{DoxySeeAlso}{See also}
149 | get\_\-current\_\-ntp\_\-time
150 | \end{DoxySeeAlso}
151 | \hypertarget{classtnyosc_1_1_bundle_ae172d6cdb7440822f84291c8b96fb00d}{
152 | \index{tnyosc::Bundle@{tnyosc::Bundle}!size@{size}}
153 | \index{size@{size}!tnyosc::Bundle@{tnyosc::Bundle}}
154 | \subsubsection[{size}]{\setlength{\rightskip}{0pt plus 5cm}size\_\-t tnyosc::Bundle::size (
155 | \begin{DoxyParamCaption}
156 | {}
157 | \end{DoxyParamCaption}
158 | ) const\hspace{0.3cm}{\ttfamily \mbox{[}inline\mbox{]}}}}
159 | \label{classtnyosc_1_1_bundle_ae172d6cdb7440822f84291c8b96fb00d}
160 | Returns the size of this OSC bundle.
161 |
162 | \begin{DoxyReturn}{Returns}
163 | Size of the OSC bundle in bytes.
164 | \end{DoxyReturn}
165 | \begin{DoxySeeAlso}{See also}
166 | \hyperlink{classtnyosc_1_1_bundle_a115f4db940bb1a04cd9a2c60fdaa039f}{byte\_\-array}
167 |
168 | \hyperlink{classtnyosc_1_1_bundle_a1df649f2cd0748a7159ea3081dae42b2}{data}
169 | \end{DoxySeeAlso}
170 |
171 |
172 | The documentation for this class was generated from the following file:\begin{DoxyCompactItemize}
173 | \item
174 | \hyperlink{tnyosc_8hpp}{tnyosc.hpp}\end{DoxyCompactItemize}
175 |
--------------------------------------------------------------------------------
/doc/html/tnyosc_09_09_8h.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | |
22 | tnyosc++ 1
23 | Tiny Open Sound Control header-only library
24 | |
25 |
#include <sys/time.h>#include <arpa/inet.h>#include <cstddef>#include <string>#include <vector>#include <algorithm>#include <iostream>#include <inttypes.h>Go to the source code of this file.
79 |81 | Classes | |
| class | tnyosc::Message |
| class | tnyosc::Bundle |
85 | Defines | |
| #define | ntohll(x) |
| Convert 64-bit little-endian integer to a big-endian network format. | |
| 89 | #define | htonll(x) ntohll(x) |
| Convert 64-bit big-endian network format to a little-endian integer. | |
92 | Typedefs | |
|
94 | typedef std::vector< unsigned 95 | char > | tnyosc::ByteArray |
| A byte array type internally used in the tnyosc library. | |
98 | Functions | |
| 100 | int32_t | tnyosc::htonf (float x) |
| Convert 32-bit float to a big-endian network format. | |
| 103 | int64_t | tnyosc::htond (double x) |
| Convert 64-bit float (double) to a big-endian network format. | |
| 106 | double | tnyosc::ntohf (int32_t x) |
| Convert 32-bit big-endian network format to float. | |
| 109 | double | tnyosc::ntohd (int64_t x) |
| Convert 64-bit big-endian network format to double. | |
| const unsigned char * | tnyosc::get_pointer (const ByteArray &array) |
| uint64_t | tnyosc::get_current_ntp_time () |
tnyosc++.h
116 |The main (and only) tnyosc++ file for creating Open Sound Control 1.0 and 1.1 Specification compliant messages. tnyosc++ provides simple and clean C++ API.
117 | 118 || #define ntohll | 125 |( | 126 |127 | | x | ) | 128 |129 | |
(((int64_t)(ntohl((int32_t)((x << 32) >> 32))) << 32) | \ 134 | (uint32_t)ntohl(((int32_t)(x >> 32)))) 135 |
Convert 64-bit little-endian integer to a big-endian network format.
137 | 138 |
1.7.4
158 |
159 |
160 |
--------------------------------------------------------------------------------
/doc/html/tnyosc_8hpp.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | |
22 | tnyos 1
23 | Tiny header-only library for formatting Open Sound Control messages.
24 | |
25 |
tnyosc main (and only) header file 71 | More...
72 |#include <sys/time.h>#include <arpa/inet.h>#include <cstddef>#include <string>#include <vector>#include <algorithm>#include <iostream>#include <inttypes.h>Go to the source code of this file.
82 |84 | Classes | |
| class | tnyosc::Message |
| class | tnyosc::Bundle |
88 | Defines | |
| #define | ntohll(x) |
| Convert 64-bit little-endian integer to a big-endian network format. | |
| 92 | #define | htonll(x) ntohll(x) |
| Convert 64-bit big-endian network format to a little-endian integer. | |
95 | Typedefs | |
|
97 | typedef std::vector< unsigned 98 | char > | tnyosc::ByteArray |
| A byte array type internally used in the tnyosc library. | |
101 | Functions | |
| 103 | int32_t | tnyosc::htonf (float x) |
| Convert 32-bit float to a big-endian network format. | |
| 106 | int64_t | tnyosc::htond (double x) |
| Convert 64-bit float (double) to a big-endian network format. | |
| 109 | double | tnyosc::ntohf (int32_t x) |
| Convert 32-bit big-endian network format to float. | |
| 112 | double | tnyosc::ntohd (int64_t x) |
| Convert 64-bit big-endian network format to double. | |
| const unsigned char * | tnyosc::get_pointer (const ByteArray &array) |
| uint64_t | tnyosc::get_current_ntp_time () |
tnyosc main (and only) header file
119 | 120 |tnyosc is a header-only Open Sound Control library written in C++ for creating OSC-compliant messages. tnyosc supports Open Sound Control 1.0 and 1.1 types and other nonstandard types, and bundles. Note that tnyosc does not include code to actually send or receive OSC messages.
121 || #define ntohll | 128 |( | 129 |130 | | x | ) | 131 |132 | |
(((int64_t)(ntohl((int32_t)((x << 32) >> 32))) << 32) | \ 137 | (uint32_t)ntohl(((int32_t)(x >> 32)))) 138 |
Convert 64-bit little-endian integer to a big-endian network format.
140 | 141 |
1.7.4
161 |
162 |
163 |
--------------------------------------------------------------------------------
/doc/html/classtnyosc_1_1_message-members.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | |
22 | tnyos 1
23 | Tiny header-only library for formatting Open Sound Control messages.
24 | |
25 |
| address() const | tnyosc::Message | [inline] |
| append(int32_t v) (defined in tnyosc::Message) | tnyosc::Message | [inline] |
| append(float v) (defined in tnyosc::Message) | tnyosc::Message | [inline] |
| append(const std::string &v) (defined in tnyosc::Message) | tnyosc::Message | [inline] |
| append(int64_t v) (defined in tnyosc::Message) | tnyosc::Message | [inline] |
| append(double v) (defined in tnyosc::Message) | tnyosc::Message | [inline] |
| append(char v) (defined in tnyosc::Message) | tnyosc::Message | [inline] |
| append_array(void *array, size_t size) (defined in tnyosc::Message) | tnyosc::Message | [inline] |
| append_blob(void *blob, uint32_t size) (defined in tnyosc::Message) | tnyosc::Message | [inline] |
| append_cstring(const char *v, size_t len) (defined in tnyosc::Message) | tnyosc::Message | [inline] |
| append_current_time() (defined in tnyosc::Message) | tnyosc::Message | [inline] |
| append_false() (defined in tnyosc::Message) | tnyosc::Message | [inline] |
| append_impulse() (defined in tnyosc::Message) | tnyosc::Message | [inline] |
| append_midi(uint8_t port, uint8_t status, uint8_t data1, uint8_t data2) (defined in tnyosc::Message) | tnyosc::Message | [inline] |
| append_null() (defined in tnyosc::Message) | tnyosc::Message | [inline] |
| append_time(uint64_t v) (defined in tnyosc::Message) | tnyosc::Message | [inline] |
| append_true() (defined in tnyosc::Message) | tnyosc::Message | [inline] |
| byte_array() const | tnyosc::Message | [inline] |
| clear() | tnyosc::Message | [inline] |
| data() const | tnyosc::Message | [inline] |
| Message(const std::string &address="/tnyosc") | tnyosc::Message | [inline, explicit] |
| Message(const char *address) | tnyosc::Message | [inline, explicit] |
| set_address(const std::string &address) | tnyosc::Message | [inline] |
| set_address(const char *address) | tnyosc::Message | [inline] |
| size() const | tnyosc::Message | [inline] |
| ~Message() (defined in tnyosc::Message) | tnyosc::Message | [inline] |
1.7.4
116 |
117 |
118 |
--------------------------------------------------------------------------------
/doc/latex/doxygen.sty:
--------------------------------------------------------------------------------
1 | \NeedsTeXFormat{LaTeX2e}
2 | \ProvidesPackage{doxygen}
3 |
4 | % Packages used by this style file
5 | \RequirePackage{alltt}
6 | \RequirePackage{array}
7 | \RequirePackage{calc}
8 | \RequirePackage{color}
9 | \RequirePackage{fancyhdr}
10 | \RequirePackage{longtable}
11 | \RequirePackage{verbatim}
12 | \RequirePackage{ifthen}
13 | \RequirePackage[table]{xcolor}
14 |
15 | % Use helvetica font instead of times roman
16 | \RequirePackage{helvet}
17 | \RequirePackage{sectsty}
18 | \RequirePackage{tocloft}
19 | \providecommand{\rmdefault}{phv}
20 | \providecommand{\bfdefault}{bc}
21 |
22 |
23 | % Setup fancy headings
24 | \pagestyle{fancyplain}
25 | \newcommand{\clearemptydoublepage}{%
26 | \newpage{\pagestyle{empty}\cleardoublepage}%
27 | }
28 | \renewcommand{\chaptermark}[1]{%
29 | \markboth{#1}{}%
30 | }
31 | \renewcommand{\sectionmark}[1]{%
32 | \markright{\thesection\ #1}%
33 | }
34 | \fancyhead[LE]{\fancyplain{}{\bfseries\thepage}}
35 | \fancyhead[CE]{\fancyplain{}{}}
36 | \fancyhead[RE]{\fancyplain{}{\bfseries\leftmark}}
37 | \fancyhead[LO]{\fancyplain{}{\bfseries\rightmark}}
38 | \fancyhead[CO]{\fancyplain{}{}}
39 | \fancyhead[RO]{\fancyplain{}{\bfseries\thepage}}
40 | \fancyfoot[LE]{\fancyplain{}{}}
41 | \fancyfoot[CE]{\fancyplain{}{}}
42 | \fancyfoot[RE]{\fancyplain{}{\bfseries\scriptsize Generated on Tue Jul 26 2011 13:02:02 for tnyos by Doxygen }}
43 | \fancyfoot[LO]{\fancyplain{}{\bfseries\scriptsize Generated on Tue Jul 26 2011 13:02:02 for tnyos by Doxygen }}
44 | \fancyfoot[CO]{\fancyplain{}{}}
45 | \fancyfoot[RO]{\fancyplain{}{}}
46 | %---------- Internal commands used in this style file ----------------
47 |
48 | % Generic environment used by all paragraph-based environments defined
49 | % below. Note that the command \title{...} needs to be defined inside
50 | % those environments!
51 | \newenvironment{DoxyDesc}[1]{%
52 | \begin{list}{}%
53 | {%
54 | \settowidth{\labelwidth}{40pt}%
55 | \setlength{\leftmargin}{\labelwidth}%
56 | \setlength{\parsep}{0pt}%
57 | \setlength{\itemsep}{-4pt}%
58 | \renewcommand{\makelabel}{\entrylabel}%
59 | }%
60 | \item[#1]%
61 | }{%
62 | \end{list}%
63 | }
64 |
65 | %---------- Commands used by doxygen LaTeX output generator ----------
66 |
67 | % Used by ...68 | \newenvironment{DoxyPre}{% 69 | \small% 70 | \begin{alltt}% 71 | }{% 72 | \end{alltt}% 73 | \normalsize% 74 | } 75 | 76 | % Used by @code ... @endcode 77 | \newenvironment{DoxyCode}{% 78 | \footnotesize% 79 | \verbatim% 80 | }{% 81 | \endverbatim% 82 | \normalsize% 83 | } 84 | 85 | % Used by @example, @include, @includelineno and @dontinclude 86 | \newenvironment{DoxyCodeInclude}{% 87 | \DoxyCode% 88 | }{% 89 | \endDoxyCode% 90 | } 91 | 92 | % Used by @verbatim ... @endverbatim 93 | \newenvironment{DoxyVerb}{% 94 | \footnotesize% 95 | \verbatim% 96 | }{% 97 | \endverbatim% 98 | \normalsize% 99 | } 100 | 101 | % Used by @verbinclude 102 | \newenvironment{DoxyVerbInclude}{% 103 | \DoxyVerb% 104 | }{% 105 | \endDoxyVerb% 106 | } 107 | 108 | % Used by numbered lists (using '-#' or