mirror of
https://github.com/Telecominfraproject/wlan-cloud-lib-cppkafka.git
synced 2025-11-02 19:47:55 +00:00
Allow building a configuration from an option list
This commit is contained in:
@@ -33,6 +33,7 @@
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <functional>
|
||||
#include <initializer_list>
|
||||
#include <chrono>
|
||||
#include <boost/optional.hpp>
|
||||
#include <librdkafka/rdkafka.h>
|
||||
@@ -82,6 +83,16 @@ public:
|
||||
*/
|
||||
Configuration();
|
||||
|
||||
/**
|
||||
* Constructs a Configuration object using a list of options
|
||||
*/
|
||||
Configuration(const std::vector<ConfigurationOption>& options);
|
||||
|
||||
/**
|
||||
* Constructs a Configuration object using a list of options
|
||||
*/
|
||||
Configuration(const std::initializer_list<ConfigurationOption>& options);
|
||||
|
||||
/**
|
||||
* \brief Sets an attribute.
|
||||
*
|
||||
@@ -130,7 +141,7 @@ public:
|
||||
/**
|
||||
* Sets the default topic configuration
|
||||
*/
|
||||
Configuration& set_default_topic_configuration(boost::optional<TopicConfiguration> config);
|
||||
Configuration& set_default_topic_configuration(TopicConfiguration config);
|
||||
|
||||
/**
|
||||
* Returns true iff the given property name has been set
|
||||
|
||||
Reference in New Issue
Block a user