! @brief Create an empty CompressedVectorNode, for writing, that will store records specified by the prototype. @param [in] destImageFile The ImageFile where the new node will eventually be stored. @param [in] prototype A tree that describes the fields in each record of the CompressedVectorNode. @param [in] codecs A VectorNode describing which codecs should be used for each field described in the
| 208 | @see SourceDestBuffer, Node, CompressedVectorNode::reader, CompressedVectorNode::writer |
| 209 | */ |
| 210 | CompressedVectorNode::CompressedVectorNode( const ImageFile &destImageFile, const Node &prototype, |
| 211 | const VectorNode &codecs ) : |
| 212 | impl_( new CompressedVectorNodeImpl( destImageFile.impl() ) ) |
| 213 | { |
| 214 | // Because of shared_ptr quirks, can't set prototype,codecs in CompressedVectorNodeImpl(), so set |
| 215 | // it afterwards |
| 216 | impl_->setPrototype( prototype.impl() ); |
| 217 | impl_->setCodecs( codecs.impl() ); |
| 218 | } |
| 219 | |
| 220 | /*! |
| 221 | @brief Is this a root node. |
nothing calls this directly
no test coverage detected