35 NodeImpl( destImageFile ), value_( value ), minimum_( minimum ), maximum_( maximum )
59 std::shared_ptr<IntegerNodeImpl> ii( std::static_pointer_cast<IntegerNodeImpl>( ni ) );
62 if ( minimum_ != ii->minimum_ )
68 if ( maximum_ != ii->maximum_ )
117 const char *forcedFieldName )
122 if ( forcedFieldName !=
nullptr )
124 fieldName = forcedFieldName;
131 cf <<
space( indent ) <<
"<" << fieldName <<
" type=\"Integer\"";
134 if ( minimum_ != E57_INT64_MIN )
136 cf <<
" minimum=\"" << minimum_ <<
"\"";
138 if ( maximum_ != E57_INT64_MAX )
140 cf <<
" maximum=\"" << maximum_ <<
"\"";
146 cf <<
">" << value_ <<
"</" << fieldName <<
">\n";
158 os <<
space( indent ) <<
"type: Integer"
void checkLeavesInSet(const StringSet &pathNames, NodeImplSharedPtr origin) override
void writeXml(ImageFileImplSharedPtr imf, CheckedFile &cf, int indent, const char *forcedFieldName=nullptr) override
NodeType type() const override
IntegerNodeImpl(ImageFileImplWeakPtr destImageFile, int64_t value=0, int64_t minimum=0, int64_t maximum=0)
bool isDefined(const ustring &pathName) override
void dump(int indent=0, std::ostream &os=std::cout) const override
bool isTypeEquivalent(NodeImplSharedPtr ni) override
ustring relativePathName(const NodeImplSharedPtr &origin, ustring childPathName=ustring()) const
void checkImageFileOpen(const char *srcFileName, int srcLineNumber, const char *srcFunctionName) const
virtual void dump(int indent=0, std::ostream &os=std::cout) const
QTextStream & endl(QTextStream &stream)
std::shared_ptr< class NodeImpl > NodeImplSharedPtr
std::weak_ptr< class ImageFileImpl > ImageFileImplWeakPtr
std::shared_ptr< class ImageFileImpl > ImageFileImplSharedPtr
@ E57_ERROR_VALUE_OUT_OF_BOUNDS
element value out of min/max bounds
@ E57_ERROR_NO_BUFFER_FOR_ELEMENT
std::string ustring
UTF-8 encodeded Unicode string.
std::set< std::string > StringSet
@ E57_INTEGER
IntegerNode class.
std::string toString(T x)
std::string space(size_t n)