20 #include "containeroptions/dynamiccontaineroptions.h" 24 std::unique_ptr<SoftwareContainerConfig> DynamicContainerOptions::toConfig(
const SoftwareContainerConfig &conf)
const 26 std::unique_ptr<SoftwareContainerConfig> dynamicConf =
27 std::unique_ptr<SoftwareContainerConfig>(
new SoftwareContainerConfig(conf));
29 dynamicConf->setEnableWriteBuffer(writeBufferEnabled());
33 void DynamicContainerOptions::setWriteBufferEnabled(
bool enabled)
35 m_writeBufferEnabled = enabled;
38 bool DynamicContainerOptions::writeBufferEnabled()
const 40 return m_writeBufferEnabled;
45 m_temporaryFileSystemWriteBufferEnabled = enabled;
50 return m_temporaryFileSystemWriteBufferEnabled;
55 m_temporaryFileSystemSize = size;
60 return m_temporaryFileSystemSize;
bool temporaryFileSystemWriteBufferEnabled() const
Getter for the temporaryFileSystemWriteBufferEnableds variable.
unsigned int temporaryFileSystemSize() const
Getter for the temporaryFileSystemSize variable.
void setTemporaryFileSystemWriteBufferEnabled(bool enabled)
Setter for the temporaryFileSystemWriteBufferEnableds variable used to tell the container if it shall...
Developers guide to adding a config item:
void setTemporaryFileSystemSize(unsigned int size)
Setter for the temporaryFileSystemSize which is used to tell the system the size of the tmpfs being m...