zmqpp 4.1.2
C++ bindings for 0mq (libzmq)
Loading...
Searching...
No Matches
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{
29
30 bool verbose;
33
35
36 std::vector<zmqpp::endpoint_t> binds;
37 std::vector<zmqpp::endpoint_t> connects;
38
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
50client_options process_command_line(int argc, char const* argv[]);
51std::ostream& show_usage(std::ostream& stream, std::string const& application_name);
52std::ostream& show_help(std::ostream& stream);
53
54#endif /* OPTIONS_HPP_ */
C++ wrapper around zmq.
Definition actor.cpp:30
ZMQPP_COMPARABLE_ENUM socket_type
Socket types allowed by zmq.
Definition socket_types.hpp:30
std::ostream & show_help(std::ostream &stream)
Definition options.cpp:152
std::ostream & show_usage(std::ostream &stream, std::string const &application_name)
Definition options.cpp:141
client_options process_command_line(int argc, char const *argv[])
Definition options.cpp:76
Definition options.hpp:25
bool singlepart
Definition options.hpp:39
bool show_version
Definition options.hpp:28
client_options()
Definition options.hpp:42
bool annotate
Definition options.hpp:32
bool show_help
Definition options.hpp:27
std::vector< zmqpp::endpoint_t > binds
Definition options.hpp:36
bool verbose
Definition options.hpp:30
zmqpp::socket_type type
Definition options.hpp:34
bool detailed
Definition options.hpp:31
bool show_usage
Definition options.hpp:26
std::vector< zmqpp::endpoint_t > connects
Definition options.hpp:37
bool exit_on_empty
Definition options.hpp:40