Options for creating an imgdoc2-document.
More...
#include <ICreateOptions.h>
Options for creating an imgdoc2-document.
◆ AddDimension()
virtual void imgdoc2::ICreateOptions::AddDimension |
( |
imgdoc2::Dimension |
dim | ) |
|
|
pure virtual |
Adds a dimension. Adding the same dimension multiple times is valid, no error is reported in this case. If the argument 'dim' is not a valid dimension identifier, an "invalid_argument" exception will be thrown.
- Parameters
-
◆ AddDimensions()
template<class ForwardIterator >
void imgdoc2::ICreateOptions::AddDimensions |
( |
ForwardIterator |
start, |
|
|
ForwardIterator |
end |
|
) |
| |
|
inline |
Adds the dimensions from the specified iterator.
- Template Parameters
-
ForwardIterator | Type of the forward iterator. |
- Parameters
-
start | The start. |
end | The end. |
◆ AddIndexForDimension()
virtual void imgdoc2::ICreateOptions::AddIndexForDimension |
( |
imgdoc2::Dimension |
dim | ) |
|
|
pure virtual |
Adds a dimension for which an index is to be created. Adding the same dimension multiple times is valid, no error is reported in this case. If the argument 'dim' is not a valid dimension identifier, an "invalid_argument" exception will be thrown.
- Parameters
-
dim | The dimension for which to create an index. |
◆ GetCreateBlobTable()
virtual bool imgdoc2::ICreateOptions::GetCreateBlobTable |
( |
| ) |
const |
|
pure virtual |
Gets a boolean indicating whether a blob table is to be created.
- Returns
- True if a blob table is to be created; false otherwise.
◆ GetDimensions()
virtual const std::unordered_set< imgdoc2::Dimension > & imgdoc2::ICreateOptions::GetDimensions |
( |
| ) |
const |
|
pure virtual |
Gets the dimensions.
- Returns
- The dimensions.
◆ GetDocumentType()
virtual imgdoc2::DocumentType imgdoc2::ICreateOptions::GetDocumentType |
( |
| ) |
const |
|
pure virtual |
Gets the document type.
- Returns
- The document type.
◆ GetFilename()
virtual const std::string & imgdoc2::ICreateOptions::GetFilename |
( |
| ) |
const |
|
pure virtual |
Gets the filename. The returned string is given in UTF8-encoding.
- Returns
- The filename.
◆ GetIndexedDimensions()
virtual const std::unordered_set< imgdoc2::Dimension > & imgdoc2::ICreateOptions::GetIndexedDimensions |
( |
| ) |
const |
|
pure virtual |
Gets dimensions for which an index is to be created.
- Returns
- The indexed dimensions.
◆ GetUseSpatialIndex()
virtual bool imgdoc2::ICreateOptions::GetUseSpatialIndex |
( |
| ) |
const |
|
pure virtual |
Whether the document should be created with a spatial index.
- Returns
- True if a spatial index is requested; false otherwise.
◆ SetCreateBlobTable()
virtual void imgdoc2::ICreateOptions::SetCreateBlobTable |
( |
bool |
create_blob_table | ) |
|
|
pure virtual |
Sets a flag indicating whether a BLOB table is to be constructed. Only if a BLOB table is present, the storage-type "BlobInDatabase" can be used.
- Parameters
-
create_blob_table | True to create BLOB table. |
◆ SetDocumentType()
virtual void imgdoc2::ICreateOptions::SetDocumentType |
( |
imgdoc2::DocumentType |
document_type | ) |
|
|
pure virtual |
Sets the document type. Note that a newly created instance will have the document type "kImage2d2".
- Parameters
-
document_type | Type of the document. |
◆ SetFilename() [1/2]
virtual void imgdoc2::ICreateOptions::SetFilename |
( |
const char * |
filename | ) |
|
|
pure virtual |
◆ SetFilename() [2/2]
void imgdoc2::ICreateOptions::SetFilename |
( |
const std::string & |
filename | ) |
|
|
inline |
◆ SetUseSpatialIndex()
virtual void imgdoc2::ICreateOptions::SetUseSpatialIndex |
( |
bool |
use_spatial_index | ) |
|
|
pure virtual |
Sets a flag indicating whether the database should be created containing a spatial index.
- Parameters
-
use_spatial_index | True if to construct with a spatial index. |
The documentation for this class was generated from the following file: