mirror of
https://github.com/Telecominfraproject/wlan-cloud-lib-cppkafka.git
synced 2025-11-02 03:28:01 +00:00
Allow building a configuration from an option list
This commit is contained in:
@@ -32,6 +32,7 @@
|
||||
|
||||
#include <string>
|
||||
#include <functional>
|
||||
#include <initializer_list>
|
||||
#include <librdkafka/rdkafka.h>
|
||||
#include "clonable_ptr.h"
|
||||
#include "configuration_base.h"
|
||||
@@ -71,6 +72,16 @@ public:
|
||||
*/
|
||||
TopicConfiguration();
|
||||
|
||||
/**
|
||||
* Constructs a TopicConfiguration object using a list of options
|
||||
*/
|
||||
TopicConfiguration(const std::vector<ConfigurationOption>& options);
|
||||
|
||||
/**
|
||||
* Constructs a TopicConfiguration object using a list of options
|
||||
*/
|
||||
TopicConfiguration(const std::initializer_list<ConfigurationOption>& options);
|
||||
|
||||
/**
|
||||
* Sets an option
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user