libxcks
0.1.0.1
|
Provides options for the XCKS writer. More...
#include <handlers.hpp>
Public Member Functions | |
XCKSWriterOptions (const bool writeGeneratedElement=true, const bool writeFileSize=true, const bool writeFileDateTime=true, const bool useCompactXML=false, const bool useTabsforIndentation=false, const unsigned int nbIndentSpaces=default_indent_spaces, const bool checkReturnedChecksums=true, const std::string applicationWriter=std::string(), const std::string applicationVersion=std::string(), const bool writeLibXCKSVersion=false) | |
Constructor. More... | |
virtual | ~XCKSWriterOptions ()=default |
Destructor. More... | |
virtual bool | writeGeneratedElement () const final |
Indicates whether the generated element must be written in the XCKS file. More... | |
virtual void | setWriteGeneratedElement (const bool writeGeneratedElement) final |
Sets if the generated element must be written in the XCKS file. More... | |
virtual bool | writeFileSize () const final |
Indicates whether the files' size must be written in the XCKS file. More... | |
virtual void | setWriteFileSize (const bool writeFileSize) final |
Sets if the files' size must be written in the XCKS file. More... | |
virtual bool | writeFileDateTime () const final |
Indicates whether the files' date/time must be written in the XCKS file. More... | |
virtual void | setWriteFileDateTime (const bool writeFileDateTime) final |
Sets if the files' date/time must be written in the XCKS file. More... | |
virtual bool | useCompactXML () const final |
Indicates whether the XCKS file must be written in its compact form or not. More... | |
virtual void | setUseCompactXML (const bool useCompactXML) final |
Sets if the XCKS file must be written in its compact form or not. More... | |
virtual bool | useTabsforIndentation () const final |
Indicates which type of indentation should be used when writing the XCKS file. More... | |
virtual void | setUseTabsforIndentation (const bool useTabsforIndentation) final |
Sets which type of indentation should be used when writing the XCKS file. More... | |
virtual unsigned int | getIndentSpaces () const final |
Returns the number of spaces to use for indention (meaningful only if useTabsforIndentation() returns false ). More... | |
virtual void | setIndentSpaces (const unsigned int nbIndentSpaces) final |
Sets the number of spaces to use for indention (meaningful only if useTabsforIndentation() returns false ). More... | |
virtual bool | checkReturnedChecksums () const final |
Indicates whether all checksums values returned by an XCKSWriterChecksumProvider instance must be verified. More... | |
virtual void | setCheckReturnedChecksums (const bool checkReturnedChecksums) final |
Sets if all checksums values returned by an XCKSWriterChecksumProvider instance must be verified. More... | |
virtual std::string | getApplicationWriter () const final |
Gets the name of the application using libxcks to write the XCKS file. More... | |
virtual void | setApplicationWriter (const std::string &applicationWriter) final |
Sets the name of the application using libxcks to write the XCKS file. More... | |
virtual std::string | getApplicationWriterVersion () const final |
Gets the version of the application using libxcks to write the XCKS file. More... | |
virtual void | setApplicationWriterVersion (const std::string &applicationVersion) final |
Sets the version of the application using libxcks to write the XCKS file. More... | |
virtual bool | writeLibXCKSVersion () const final |
Indicates whether the name and version of the libxcks must be written with the application name and version. More... | |
virtual void | setWriteLibXCKSVersion (const bool writeLibXCKSVersion) final |
Sets if the name and version of the libxcks must be written with the application name and version. More... | |
Static Protected Attributes | |
static constexpr unsigned int | default_indent_spaces = 2u |
Default number of spaces to use for indentation. More... | |
Provides options for the XCKS writer.
Definition at line 817 of file handlers.hpp.
libxcks::XCKSWriterOptions::XCKSWriterOptions | ( | const bool | writeGeneratedElement = true , |
const bool | writeFileSize = true , |
||
const bool | writeFileDateTime = true , |
||
const bool | useCompactXML = false , |
||
const bool | useTabsforIndentation = false , |
||
const unsigned int | nbIndentSpaces = default_indent_spaces , |
||
const bool | checkReturnedChecksums = true , |
||
const std::string | applicationWriter = std::string() , |
||
const std::string | applicationVersion = std::string() , |
||
const bool | writeLibXCKSVersion = false |
||
) |
Constructor.
[in] | writeGeneratedElement | true if the generated element must be written, false otherwise. |
[in] | writeFileSize | true if the files' size must be written in the XCKS file, false otherwise. |
[in] | writeFileDateTime | true if the files' date/time must be written in the XCKS file, false otherwise. |
[in] | useCompactXML | true if the XCKS file must be written in its compact form, false otherwise. |
[in] | useTabsforIndentation | true for writing tabs, false for writing spaces. |
[in] | nbIndentSpaces | The number of spaces to use for indention. Must be between 1 and max_indent_spaces . |
[in] | checkReturnedChecksums | true to check the validity of all checksums values returned by an XCKSWriterChecksumProvider instance, false otherwise. |
[in] | applicationWriter | The name of the application using libxcks to write the XCKS file or an empty string to not write the name and version the application. |
[in] | applicationVersion | The version of the application using libcks to write the XCKS file or an empty string to not write the name and version the application. |
[in] | writeLibXCKSVersion | true to write the name and version of the libxcks with the application name and version, false otherwise. If appWriter or appWriterVersion are empty, the name and version of the libxcks is always written. |
Definition at line 43 of file handlers.cpp.
|
virtualdefault |
Destructor.
|
inlinefinalvirtual |
Indicates whether all checksums values returned by an XCKSWriterChecksumProvider
instance must be verified.
true
to check the validity of all checksums values returned by an XCKSWriterChecksumProvider
instance, false
otherwise. Definition at line 988 of file handlers.hpp.
|
inlinefinalvirtual |
Gets the name of the application using libxcks to write the XCKS file.
Definition at line 1007 of file handlers.hpp.
|
inlinefinalvirtual |
Gets the version of the application using libxcks to write the XCKS file.
Definition at line 1026 of file handlers.hpp.
|
inlinefinalvirtual |
Returns the number of spaces to use for indention (meaningful only if useTabsforIndentation()
returns false
).
Definition at line 970 of file handlers.hpp.
|
inlinefinalvirtual |
Sets the name of the application using libxcks to write the XCKS file.
[in] | applicationWriter | The name of the application using libxcks to write the XCKS file or an empty string to not write the name and version the application. |
Definition at line 1017 of file handlers.hpp.
|
inlinefinalvirtual |
Sets the version of the application using libxcks to write the XCKS file.
[in] | applicationVersion | The version of the application using libcks to write the XCKS file or an empty string to not write the name and version the application. |
Definition at line 1035 of file handlers.hpp.
|
inlinefinalvirtual |
Sets if all checksums values returned by an XCKSWriterChecksumProvider
instance must be verified.
[in] | checkReturnedChecksums | true to check the validity of all checksums values returned by an XCKSWriterChecksumProvider instance, false otherwise. |
Definition at line 999 of file handlers.hpp.
|
finalvirtual |
Sets the number of spaces to use for indention (meaningful only if useTabsforIndentation()
returns false
).
[in] | nbIndentSpaces | The number of spaces to use for indention. Must be between 1 and max_indent_spaces . |
Definition at line 72 of file handlers.cpp.
|
inlinefinalvirtual |
Sets if the XCKS file must be written in its compact form or not.
[in] | useCompactXML | true if the XCKS file must be written in its compact form, false otherwise. |
Definition at line 946 of file handlers.hpp.
|
inlinefinalvirtual |
Sets which type of indentation should be used when writing the XCKS file.
[in] | useTabsforIndentation | true for writing tabs, false for writing spaces. |
Definition at line 962 of file handlers.hpp.
|
inlinefinalvirtual |
Sets if the files' date/time must be written in the XCKS file.
[in] | writeFileDateTime | true if the files' date/time must be written in the XCKS file, false otherwise. |
Definition at line 930 of file handlers.hpp.
|
inlinefinalvirtual |
Sets if the files' size must be written in the XCKS file.
[in] | writeFileSize | true if the files' size must be written in the XCKS file, false otherwise. |
Definition at line 914 of file handlers.hpp.
|
inlinefinalvirtual |
Sets if the generated element must be written in the XCKS file.
[in] | writeGeneratedElement | true if the generated element must be written, false otherwise. |
Definition at line 898 of file handlers.hpp.
|
inlinefinalvirtual |
Sets if the name and version of the libxcks must be written with the application name and version.
appWriter
or appWriterVersion
are empty, the name and version of the libxcks is always written.[in] | writeLibXCKSVersion | true to write the name and version of the libxcks with the application name and version, false otherwise. If appWriter or appWriterVersion are empty, the name and version of the libxcks is always written. |
Definition at line 1062 of file handlers.hpp.
|
inlinefinalvirtual |
Indicates whether the XCKS file must be written in its compact form or not.
true
if the XCKS file must be written in its compact form, false
otherwise. Definition at line 938 of file handlers.hpp.
|
inlinefinalvirtual |
Indicates which type of indentation should be used when writing the XCKS file.
true
for writing tabs, false
for writing spaces. Definition at line 954 of file handlers.hpp.
|
inlinefinalvirtual |
Indicates whether the files' date/time must be written in the XCKS file.
true
if the files' date/time must be written in the XCKS file, false
otherwise. Definition at line 922 of file handlers.hpp.
|
inlinefinalvirtual |
Indicates whether the files' size must be written in the XCKS file.
true
if the files' size must be written in the XCKS file, false
otherwise. Definition at line 906 of file handlers.hpp.
|
inlinefinalvirtual |
Indicates whether the generated element must be written in the XCKS file.
true
if the generated element must be written, false
otherwise. Definition at line 890 of file handlers.hpp.
|
inlinefinalvirtual |
Indicates whether the name and version of the libxcks must be written with the application name and version.
appWriter
or appWriterVersion
are empty, the name and version of the libxcks is always written.true
to write the name and version of the libxcks with the application name and version, false
otherwise. Definition at line 1047 of file handlers.hpp.
|
staticconstexprprotected |
Default number of spaces to use for indentation.
Definition at line 835 of file handlers.hpp.