DP3
Public Types | Public Member Functions | List of all members
dp3::model::SourceDBWrapper Class Reference

#include <SourceDBUtil.h>

Public Types

enum class  FilterMode { kPattern , kValue }
 The method used to filter the supplied patches. More...
 

Public Member Functions

 SourceDBWrapper (const std::string &source_db_name)
 
bool CheckAnyOrientationIsAbsolute ()
 
bool CheckPolarized ()
 
SourceDBWrapperFilter (const std::vector< std::string > &filter, FilterMode filter_mode)
 
std::vector< std::shared_ptr< Patch > > MakePatchList ()
 

Detailed Description

A SourceDB abstraction layer.

A SourceDB can be read as a SourceDB database or a .skymodel file. This class abstracts the processing of the data regardless of the data source used.

Member Enumeration Documentation

◆ FilterMode

The method used to filter the supplied patches.

Enumerator
kPattern 

Filter as a pattern.

When used the @c patch_names_ is initialised with the found patches
sorted in alphabetic order. 
kValue 

Filter as a value.

When used the @c patch_names_ is initialised filter as list of values.
They are stored in the same order as supplied to the constructor. 

Constructor & Destructor Documentation

◆ SourceDBWrapper()

dp3::model::SourceDBWrapper::SourceDBWrapper ( const std::string &  source_db_name)
explicit
Parameters
source_db_nameThe name of the source DB to create. The name can either be the name of a binary or textual source DB. The entension of the name determines which is used:
  • If .txt and .skymodel textual
  • else binary

Member Function Documentation

◆ CheckAnyOrientationIsAbsolute()

bool dp3::model::SourceDBWrapper::CheckAnyOrientationIsAbsolute ( )

◆ CheckPolarized()

bool dp3::model::SourceDBWrapper::CheckPolarized ( )

◆ Filter()

SourceDBWrapper& dp3::model::SourceDBWrapper::Filter ( const std::vector< std::string > &  filter,
FilterMode  filter_mode 
)
Parameters
filterThe list of patches to filter. The interpretation of the filter depends on the filter_mode.
filter_modeDetermines how the filter is applied.

◆ MakePatchList()

std::vector<std::shared_ptr<Patch> > dp3::model::SourceDBWrapper::MakePatchList ( )

The documentation for this class was generated from the following file: