![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
#include <StringNodeImpl.h>


Public Member Functions | |
| StringNodeImpl (ImageFileImplWeakPtr destImageFile, const ustring &value="") | |
| ~StringNodeImpl () override=default | |
| NodeType | type () const override |
| bool | isTypeEquivalent (NodeImplSharedPtr ni) override |
| bool | isDefined (const ustring &pathName) override |
| ustring | value () |
| void | checkLeavesInSet (const StringSet &pathNames, NodeImplSharedPtr origin) override |
| void | writeXml (ImageFileImplSharedPtr imf, CheckedFile &cf, int indent, const char *forcedFieldName=nullptr) override |
| void | dump (int indent=0, std::ostream &os=std::cout) const override |
Public Member Functions inherited from e57::NodeImpl | |
| void | checkImageFileOpen (const char *srcFileName, int srcLineNumber, const char *srcFunctionName) const |
| bool | isRoot () const |
| NodeImplSharedPtr | parent () |
| ustring | pathName () const |
| ustring | relativePathName (const NodeImplSharedPtr &origin, ustring childPathName=ustring()) const |
| ustring | elementName () const |
| ImageFileImplSharedPtr | destImageFile () |
| ustring | imageFileName () const |
| bool | isAttached () const |
| virtual void | setAttachedRecursive () |
| void | setParent (NodeImplSharedPtr parent, const ustring &elementName) |
| bool | isTypeConstrained () |
| virtual NodeImplSharedPtr | get (const ustring &pathName) |
| virtual void | set (const ustring &pathName, NodeImplSharedPtr ni, bool autoPathCreate=false) |
| virtual void | set (const StringList &fields, unsigned level, NodeImplSharedPtr ni, bool autoPathCreate=false) |
| void | checkBuffers (const std::vector< SourceDestBuffer > &sdbufs, bool allowMissing) |
| bool | findTerminalPosition (const NodeImplSharedPtr &target, uint64_t &countFromLeft) |
| virtual | ~NodeImpl ()=default |
Additional Inherited Members | |
Protected Member Functions inherited from e57::NodeImpl | |
| NodeImpl (ImageFileImplWeakPtr destImageFile) | |
| NodeImpl & | operator= (NodeImpl &n) |
| virtual NodeImplSharedPtr | lookup (const ustring &) |
| NodeImplSharedPtr | getRoot () |
Protected Attributes inherited from e57::NodeImpl | |
| ImageFileImplWeakPtr | destImageFile_ |
| NodeImplWeakPtr | parent_ |
| ustring | elementName_ |
| bool | isAttached_ |
Definition at line 33 of file StringNodeImpl.h.
|
explicit |
Definition at line 33 of file StringNodeImpl.cpp.
|
overridedefault |
|
overridevirtual |
We are a leaf node, so verify that we are listed in set.
Implements e57::NodeImpl.
Definition at line 69 of file StringNodeImpl.cpp.
References e57::E57_ERROR_NO_BUFFER_FOR_ELEMENT, E57_EXCEPTION2, e57::NodeImpl::pathName(), and e57::NodeImpl::relativePathName().
|
overridevirtual |
Reimplemented from e57::NodeImpl.
Definition at line 137 of file StringNodeImpl.cpp.
References e57::NodeImpl::dump(), QtCompat::endl(), e57::space(), and type().
|
overridevirtual |
We have no sub-structure, so if path not empty return false
Implements e57::NodeImpl.
Definition at line 55 of file StringNodeImpl.cpp.
References e57::NodeImpl::pathName().
|
overridevirtual |
Same node type?
ignore value_, doesn't have to match
Types match
Implements e57::NodeImpl.
Definition at line 39 of file StringNodeImpl.cpp.
References e57::E57_STRING.
|
inlineoverridevirtual |
Implements e57::NodeImpl.
Definition at line 39 of file StringNodeImpl.h.
References e57::E57_STRING.
Referenced by dump().
| ustring e57::StringNodeImpl::value | ( | ) |
Definition at line 63 of file StringNodeImpl.cpp.
References e57::NodeImpl::checkImageFileOpen().
|
overridevirtual |
Write value as child text, unless it is the default value
Loop, searching for occurences of "]]>", which will be split across two CDATA directives
Didn't find any more "]]>", so can send the rest.
Must output in two pieces, first send upto end of "]]" (don't send the following ">").
Then start a new CDATA
Keep looping to send the ">" plus the remaining part of the string
Implements e57::NodeImpl.
Definition at line 80 of file StringNodeImpl.cpp.
References e57::NodeImpl::elementName_, and e57::space().