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


Public Member Functions | |
| IntegerNodeImpl (ImageFileImplWeakPtr destImageFile, int64_t value=0, int64_t minimum=0, int64_t maximum=0) | |
| ~IntegerNodeImpl () override=default | |
| NodeType | type () const override |
| bool | isTypeEquivalent (NodeImplSharedPtr ni) override |
| bool | isDefined (const ustring &pathName) override |
| int64_t | value () |
| int64_t | minimum () |
| int64_t | maximum () |
| 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 IntegerNodeImpl.h.
| e57::IntegerNodeImpl::IntegerNodeImpl | ( | ImageFileImplWeakPtr | destImageFile, |
| int64_t | value = 0, |
||
| int64_t | minimum = 0, |
||
| int64_t | maximum = 0 |
||
| ) |
Enforce the given bounds
Definition at line 33 of file IntegerNodeImpl.cpp.
References e57::E57_ERROR_VALUE_OUT_OF_BOUNDS, E57_EXCEPTION2, maximum(), minimum(), e57::NodeImpl::pathName(), e57::toString(), and value().
|
overridedefault |
|
overridevirtual |
We are a leaf node, so verify that we are listed in set.
Implements e57::NodeImpl.
Definition at line 105 of file IntegerNodeImpl.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 155 of file IntegerNodeImpl.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 79 of file IntegerNodeImpl.cpp.
References e57::NodeImpl::pathName().
|
overridevirtual |
Same node type?
Downcast to shared_ptr<IntegerNodeImpl>
minimum must match
maximum must match
ignore value_, doesn't have to match
Types match
Implements e57::NodeImpl.
Definition at line 48 of file IntegerNodeImpl.cpp.
References e57::E57_INTEGER.
| int64_t e57::IntegerNodeImpl::maximum | ( | ) |
Definition at line 99 of file IntegerNodeImpl.cpp.
References e57::NodeImpl::checkImageFileOpen().
Referenced by IntegerNodeImpl().
| int64_t e57::IntegerNodeImpl::minimum | ( | ) |
Definition at line 93 of file IntegerNodeImpl.cpp.
References e57::NodeImpl::checkImageFileOpen().
Referenced by IntegerNodeImpl().
|
inlineoverridevirtual |
Implements e57::NodeImpl.
Definition at line 40 of file IntegerNodeImpl.h.
References e57::E57_INTEGER.
Referenced by dump().
| int64_t e57::IntegerNodeImpl::value | ( | ) |
Definition at line 87 of file IntegerNodeImpl.cpp.
References e57::NodeImpl::checkImageFileOpen().
Referenced by IntegerNodeImpl().
|
overridevirtual |
Don't need to write if are default values
Write value as child text, unless it is the default value
Implements e57::NodeImpl.
Definition at line 116 of file IntegerNodeImpl.cpp.
References e57::NodeImpl::elementName_, and e57::space().