22 #include "config/softwarecontainerconfig.h" 26 SoftwareContainerConfig::SoftwareContainerConfig(
27 #ifdef ENABLE_NETWORKGATEWAY
28 const bool shouldCreateBridge,
29 const std::string &bridgeDevice,
30 const std::string &bridgeIPAddress,
31 const std::string &bridgeNetmask,
32 int bridgeNetmaskBitLength,
33 const std::string &bridgeNetAddr,
35 const std::string &containerConfigPath,
36 const std::string &sharedMountsDir,
37 unsigned int containerShutdownTimeout) :
38 #ifdef ENABLE_NETWORKGATEWAY
39 m_shouldCreateBridge(shouldCreateBridge),
40 m_bridgeDevice(bridgeDevice),
41 m_bridgeIPAddress(bridgeIPAddress),
42 m_bridgeNetmask(bridgeNetmask),
43 m_bridgeNetmaskBitLength(bridgeNetmaskBitLength),
44 m_bridgeNetAddr(bridgeNetAddr),
46 m_containerConfigPath(containerConfigPath),
47 m_sharedMountsDir(sharedMountsDir),
48 m_containerShutdownTimeout(containerShutdownTimeout)
52 void SoftwareContainerConfig::setEnableWriteBuffer(
bool enabledFlag)
54 m_writeBufferEnabled = enabledFlag;
57 void SoftwareContainerConfig::setEnableTemporaryFileSystemWriteBuffers(
bool enabled)
59 m_temporaryFileSystemWriteBufferEnableds = enabled;
62 void SoftwareContainerConfig::setTemporaryFileSystemSize(
unsigned int size)
64 m_temporaryFileSystemSize = size;
67 std::string SoftwareContainerConfig::containerConfigPath()
const 69 return m_containerConfigPath;
72 std::string SoftwareContainerConfig::sharedMountsDir()
const 74 return m_sharedMountsDir;
77 unsigned int SoftwareContainerConfig::containerShutdownTimeout()
const 79 return m_containerShutdownTimeout;
82 bool SoftwareContainerConfig::writeBufferEnabled()
const 84 return m_writeBufferEnabled;
87 bool SoftwareContainerConfig::temporaryFileSystemWriteBufferEnableds()
const 89 return m_temporaryFileSystemWriteBufferEnableds;
92 unsigned int SoftwareContainerConfig::temporaryFileSystemSize()
const 94 return m_temporaryFileSystemSize;
97 #ifdef ENABLE_NETWORKGATEWAY 99 bool SoftwareContainerConfig::shouldCreateBridge()
const 101 return m_shouldCreateBridge;
104 std::string SoftwareContainerConfig::bridgeDevice()
const 106 return m_bridgeDevice;
109 std::string SoftwareContainerConfig::bridgeIPAddress()
const 111 return m_bridgeIPAddress;
114 std::string SoftwareContainerConfig::bridgeNetmask()
const 116 return m_bridgeNetmask;
119 int SoftwareContainerConfig::bridgeNetmaskBitLength()
const 121 return m_bridgeNetmaskBitLength;
124 std::string SoftwareContainerConfig::bridgeNetAddr()
const 126 return m_bridgeNetAddr;
129 #endif // ENABLE_NETWORKGATEWAY Developers guide to adding a config item: