Note: Goby version 1 (shown here) is now considered obsolete. Please use version 2 for new projects, and consider upgrading old projects.

Goby Underwater Autonomy Project  Series: 1.1, revision: 163, released on 2013-02-06 14:23:27 -0500
core/core_constants.h
00001 // copyright 2010 t. schneider tes@mit.edu
00002 // 
00003 // This program is free software: you can redistribute it and/or modify
00004 // it under the terms of the GNU General Public License as published by
00005 // the Free Software Foundation, either version 3 of the License, or
00006 // (at your option) any later version.
00007 //
00008 // This software is distributed in the hope that it will be useful,
00009 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00010 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00011 // GNU General Public License for more details.
00012 //
00013 // You should have received a copy of the GNU General Public License
00014 // along with this software.  If not, see <http://www.gnu.org/licenses/>
00015 
00016 
00017 #ifndef CoreConstants20100813H
00018 #define CoreConstants20100813H
00019 
00020 #include <google/protobuf/descriptor.h>
00021 #include <google/protobuf/message.h>
00022 #include <google/protobuf/text_format.h>
00023 #include "goby/util/time.h"
00024 
00025 namespace goby
00026 {
00027     namespace core
00028     {
00029         const unsigned MAX_MSG_BUFFER_SIZE = 1 << 19;
00030         const unsigned MAX_NUM_MSG = 10;
00031 
00032         // see message_queue_util.h
00033         const std::string QUEUE_PREFIX = "goby_";        
00034         const std::string CONNECT_LISTEN_QUEUE_PREFIX = QUEUE_PREFIX + "connect_listen_";
00035         const std::string CONNECT_RESPONSE_QUEUE_PREFIX = QUEUE_PREFIX + "connect_response_";
00036         const std::string TO_SERVER_QUEUE_PREFIX = QUEUE_PREFIX + "to_gobyd_from_";
00037         const std::string FROM_SERVER_QUEUE_PREFIX = QUEUE_PREFIX + "from_gobyd_to_";
00038 
00039     }
00040     
00041     namespace core
00042     {
00044         inline std::ostream& operator<<(std::ostream& out, const google::protobuf::Message& msg)
00045         {
00046             return (out << "### " << msg.GetDescriptor()->full_name() << " ###\n" << msg.DebugString());
00047         }
00048     }
00049 
00050 }
00051 
00052 
00053 
00054 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends