An encapsulation of a comment element.
More...
#include <XLComments.hpp>
An encapsulation of a comment element.
◆ XLComment() [1/4]
| OpenXLSX::XLComment::XLComment |
( |
| ) |
|
|
delete |
◆ XLComment() [2/4]
| XLComment::XLComment |
( |
XMLNode |
node | ) |
|
|
explicit |
Constructor. New items should only be created through an XLComments object.
- Parameters
-
| node | An XMLNode object with the comment XMLNode. If no input is provided, a null node is used. |
◆ XLComment() [3/4]
| OpenXLSX::XLComment::XLComment |
( |
const XLComment & |
other | ) |
|
|
default |
Copy Constructor.
- Parameters
-
| other | Object to be copied. |
◆ XLComment() [4/4]
| OpenXLSX::XLComment::XLComment |
( |
XLComment && |
other | ) |
|
|
defaultnoexcept |
Move Constructor.
- Parameters
-
◆ ~XLComment()
| OpenXLSX::XLComment::~XLComment |
( |
| ) |
|
|
default |
◆ authorId()
| uint16_t XLComment::authorId |
( |
| ) |
const |
◆ operator=() [1/2]
Copy assignment operator.
- Parameters
-
| other | Right hand side of assignment operation. |
- Returns
- A reference to the lhs object.
◆ operator=() [2/2]
Move assignment operator.
- Parameters
-
| other | Right hand side of assignment operation. |
- Returns
- A reference to lhs object.
◆ ref()
| std::string XLComment::ref |
( |
| ) |
const |
◆ richText()
◆ setAuthorId()
| XLComment & XLComment::setAuthorId |
( |
uint16_t |
newAuthorId | ) |
|
◆ setRichText()
◆ setText()
| XLComment & XLComment::setText |
( |
const std::string & |
newText | ) |
|
◆ text()
| std::string XLComment::text |
( |
| ) |
const |
◆ valid()
| bool XLComment::valid |
( |
| ) |
const |
Test if XLComment is linked to valid XML.
- Returns
- true if comment was constructed on a valid XML node, otherwise false
- Note
- Function body moved to cpp module as it uses "not" keyword for readability, which MSVC sabotages with non-CPP compatibility.
-
For the library it is reasonable to expect users to compile it with MSCV /permissive- flag, but for the user's own projects the header files shall "just work"
The documentation for this class was generated from the following files:
- /home/runner/work/OpenXLSX-NX/OpenXLSX-NX/OpenXLSX/headers/XLComments.hpp
- /home/runner/work/OpenXLSX-NX/OpenXLSX-NX/OpenXLSX/sources/XLComments.cpp