Goby v2
core_constants.h
1 // Copyright 2009-2018 Toby Schneider (http://gobysoft.org/index.wt/people/toby)
2 // GobySoft, LLC (2013-)
3 // Massachusetts Institute of Technology (2007-2014)
4 // Community contributors (see AUTHORS file)
5 //
6 //
7 // This file is part of the Goby Underwater Autonomy Project Libraries
8 // ("The Goby Libraries").
9 //
10 // The Goby Libraries are free software: you can redistribute them and/or modify
11 // them under the terms of the GNU Lesser General Public License as published by
12 // the Free Software Foundation, either version 2.1 of the License, or
13 // (at your option) any later version.
14 //
15 // The Goby Libraries are distributed in the hope that they will be useful,
16 // but WITHOUT ANY WARRANTY; without even the implied warranty of
17 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 // GNU Lesser General Public License for more details.
19 //
20 // You should have received a copy of the GNU Lesser General Public License
21 // along with Goby. If not, see <http://www.gnu.org/licenses/>.
22 
23 // copyright 2010 t. schneider tes@mit.edu
24 //
25 // This program is free software: you can redistribute it and/or modify
26 // it under the terms of the GNU General Public License as published by
27 // the Free Software Foundation, either version 3 of the License, or
28 // (at your option) any later version.
29 //
30 // This software is distributed in the hope that it will be useful,
31 // but WITHOUT ANY WARRANTY; without even the implied warranty of
32 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
33 // GNU General Public License for more details.
34 //
35 // You should have received a copy of the GNU General Public License
36 // along with this software. If not, see <http://www.gnu.org/licenses/>
37 
38 #ifndef CoreConstants20100813H
39 #define CoreConstants20100813H
40 
41 #include "goby/common/time.h"
42 #include <google/protobuf/descriptor.h>
43 #include <google/protobuf/message.h>
44 #include <google/protobuf/text_format.h>
45 
46 namespace goby
47 {
48 namespace common
49 {
50 enum MarshallingScheme
51 {
52  MARSHALLING_UNKNOWN = 0,
53  MARSHALLING_CSTR = 1,
54  MARSHALLING_PROTOBUF = 2,
55  MARSHALLING_CCL = 3,
56  MARSHALLING_MOOS = 4,
57  MARSHALLING_DCCL = 5,
58  MARSHALLING_LCM = 6,
59  MARSHALLING_MAX = 6
60 };
61 
62 const int BITS_IN_UINT32 = 32;
63 const int BITS_IN_BYTE = 8;
64 
65 //const unsigned MAX_MSG_BUFFER_SIZE = 1 << 19;
66 //const unsigned MAX_NUM_MSG = 10;
67 
68 // see message_queue_util.h
69 //const std::string QUEUE_PREFIX = "goby_";
70 /* const std::string CONNECT_LISTEN_QUEUE_PREFIX = QUEUE_PREFIX + "connect_listen_"; */
71 /* const std::string CONNECT_RESPONSE_QUEUE_PREFIX = QUEUE_PREFIX + "connect_response_"; */
72 /* const std::string TO_SERVER_QUEUE_PREFIX = QUEUE_PREFIX + "to_gobyd_from_"; */
73 /* const std::string FROM_SERVER_QUEUE_PREFIX = QUEUE_PREFIX + "from_gobyd_to_"; */
74 
75 //inline std::string make_ipc_name(const std::string& self_name,
76 // const std::string& type_name)
77 //{ return "ipc://" + QUEUE_PREFIX + type_name + "_" + self_name; }
78 
79 } // namespace common
80 
81 } // namespace goby
82 
83 #endif
The global namespace for the Goby project.