zmqpp  4.1.2
C++ bindings for 0mq (libzmq)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
options.hpp
Go to the documentation of this file.
1 /*
2  * This Source Code Form is subject to the terms of the Mozilla Public
3  * License, v. 2.0. If a copy of the MPL was not distributed with this
4  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
5  *
6  * This file is part of zmqpp.
7  * Copyright (c) 2011-2015 Contributors as noted in the AUTHORS file.
8  */
9 
10 /*
11  * options.hpp
12  *
13  * Created on: 6 Nov 2013
14  * Author: bgray
15  */
16 
17 #ifndef OPTIONS_HPP_
18 #define OPTIONS_HPP_
19 
20 #include <vector>
21 
22 #include <zmqpp/zmqpp.hpp>
23 
25 {
26  bool show_usage;
27  bool show_help;
29 
30  bool verbose;
31  bool detailed;
32  bool annotate;
33 
35 
36  std::vector<zmqpp::endpoint_t> binds;
37  std::vector<zmqpp::endpoint_t> connects;
38 
39  bool singlepart;
41 
43  : show_usage( false ), show_help( false ), show_version( false )
44  , verbose( false ), detailed( false ), annotate( false )
45  , type( zmqpp::socket_type::pair ), binds(), connects()
46  , singlepart( false ), exit_on_empty( false )
47  { }
48 };
49 
50 client_options process_command_line(int argc, char const* argv[]);
51 std::ostream& show_usage(std::ostream& stream, std::string const& application_name);
52 std::ostream& show_help(std::ostream& stream);
53 
54 #endif /* OPTIONS_HPP_ */
std::ostream & show_usage(std::ostream &stream, std::string const &application_name)
Definition: options.cpp:141
bool show_version
Definition: options.hpp:28
C++ wrapper around zmq.
Definition: actor.cpp:29
zmqpp::socket_type type
Definition: options.hpp:34
std::ostream & show_help(std::ostream &stream)
Definition: options.cpp:152
Definition: options.hpp:24
bool show_usage
Definition: options.hpp:26
bool detailed
Definition: options.hpp:31
bool singlepart
Definition: options.hpp:39
std::vector< zmqpp::endpoint_t > binds
Definition: options.hpp:36
bool verbose
Definition: options.hpp:30
bool annotate
Definition: options.hpp:32
client_options process_command_line(int argc, char const *argv[])
Definition: options.cpp:76
ZMQPP_COMPARABLE_ENUM socket_type
Socket types allowed by zmq.
Definition: socket_types.hpp:30
std::vector< zmqpp::endpoint_t > connects
Definition: options.hpp:37
bool show_help
Definition: options.hpp:27
client_options()
Definition: options.hpp:42
bool exit_on_empty
Definition: options.hpp:40