#include <ProfilingConnectionFactory.hpp>
◆ ProfilingConnectionFactory()
◆ ~ProfilingConnectionFactory()
◆ GetProfilingConnection()
Implements IProfilingConnectionFactory.
Definition at line 18 of file ProfilingConnectionFactory.cpp.
22 if (!(options.m_FileFormat ==
"binary"))
35 if ((!options.m_IncomingCaptureFile.empty() || !options.m_OutgoingCaptureFile.empty()) && !options.m_FileOnly)
38 return std::make_unique<ProfilingConnectionDumpToFileDecorator>(std::make_unique<SocketProfilingConnection>(),
41 else if ((!options.m_IncomingCaptureFile.empty() || !options.m_OutgoingCaptureFile.empty()) && options.m_FileOnly)
44 return std::make_unique<ProfilingConnectionDumpToFileDecorator>(
45 std::make_unique<FileOnlyProfilingConnection>(options), options);
47 else if (options.m_FileOnly && !options.m_LocalPacketHandlers.empty())
50 return std::make_unique<FileOnlyProfilingConnection>(options);
55 return std::make_unique<SocketProfilingConnection>();
The documentation for this class was generated from the following files: