Commit 9f858d13 authored by Christopher Reis's avatar Christopher Reis

Added mwInfo to lib

parent e3b42433
......@@ -40,7 +40,8 @@
class GMSEC_KAFKA_API KafkaConnection : public gmsec::api::internal::ConnectionInterface
{
private:
bool mw_test;
bool mw_test;
std::string mwInfo;
public:
......
......@@ -43,7 +43,8 @@ using namespace std;
KafkaConnection::KafkaConnection(const Config& config)
:
mw_test(false)
mw_test(false),
mwInfo("")
{
GMSEC_DEBUG << "Connection" << '\n';
}
......@@ -58,6 +59,16 @@ const char* KafkaConnection::getLibraryVersion()
return "v0.10.1";
}
const char* KafkaConnection::getMWInfo()
{
if (mwInfo.empty())
{
mwInfo = getLibraryRootName();
}
return mwInfo.c_str();
}
void KafkaConnection::mwConnect()
{
GMSEC_DEBUG << "gmsec_kafka:KafkaConnection::mwConnect()";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment