face+mgmt: simplify factories and FaceManager using C++11 features
Change-Id: I113a4c15ef82bff705f61f31b170f49727bc3794
Refs: #3258
diff --git a/daemon/mgmt/face-manager.hpp b/daemon/mgmt/face-manager.hpp
index e3c955f..57788b7 100644
--- a/daemon/mgmt/face-manager.hpp
+++ b/daemon/mgmt/face-manager.hpp
@@ -129,7 +129,8 @@
private: // configuration
void
- processConfig(const ConfigSection& configSection, bool isDryRun, const std::string& filename);
+ processConfig(const ConfigSection& configSection, bool isDryRun,
+ const std::string& filename);
void
processSectionUnix(const ConfigSection& configSection, bool isDryRun);
@@ -138,25 +139,18 @@
processSectionTcp(const ConfigSection& configSection, bool isDryRun);
void
- processSectionUdp(const ConfigSection& configSection,
- bool isDryRun,
+ processSectionUdp(const ConfigSection& configSection, bool isDryRun,
const std::vector<NetworkInterfaceInfo>& nicList);
void
- processSectionEther(const ConfigSection& configSection,
- bool isDryRun,
+ processSectionEther(const ConfigSection& configSection, bool isDryRun,
const std::vector<NetworkInterfaceInfo>& nicList);
void
processSectionWebSocket(const ConfigSection& configSection, bool isDryRun);
-private: // helpers for configuration
- void
- addCreatedFaceToForwarder(shared_ptr<Face> newFace);
-
PUBLIC_WITH_TESTS_ELSE_PRIVATE:
- typedef std::map<std::string/*protocol*/, shared_ptr<ProtocolFactory>> FactoryMap;
- FactoryMap m_factories;
+ std::map<std::string /*protocol*/, shared_ptr<ProtocolFactory>> m_factories;
private:
FaceTable& m_faceTable;