svcore  1.9
RDFImporterImpl Class Reference
Collaboration diagram for RDFImporterImpl:

Public Member Functions

 RDFImporterImpl (QString url, int sampleRate)
 
virtual ~RDFImporterImpl ()
 
void setSampleRate (int sampleRate)
 
bool isOK ()
 
QString getErrorString () const
 
std::vector< Model * > getDataModels (ProgressReporter *)
 

Protected Member Functions

Uri expand (QString s)
 
void getDataModelsAudio (std::vector< Model * > &, ProgressReporter *)
 
void getDataModelsSparse (std::vector< Model * > &, ProgressReporter *)
 
void getDataModelsDense (std::vector< Model * > &, ProgressReporter *)
 
void getDenseModelTitle (Model *, QString, QString)
 
void getDenseFeatureProperties (QString featureUri, int &sampleRate, int &windowLength, int &hopSize, int &width, int &height)
 
void fillModel (Model *, long, long, bool, std::vector< float > &, QString)
 

Protected Attributes

BasicStore * m_store
 
QString m_uristring
 
QString m_errorString
 
std::map< QString, Model * > m_audioModelMap
 
int m_sampleRate
 
std::map< Model *, std::map< QString, float > > m_labelValueMap
 

Detailed Description

Definition at line 50 of file RDFImporter.cpp.

Constructor & Destructor Documentation

◆ RDFImporterImpl()

RDFImporterImpl::RDFImporterImpl ( QString  url,
int  sampleRate 
)

!! retrieve data if remote... then

Definition at line 127 of file RDFImporter.cpp.

References m_errorString, and m_store.

◆ ~RDFImporterImpl()

RDFImporterImpl::~RDFImporterImpl ( )
virtual

Definition at line 154 of file RDFImporter.cpp.

References m_store.

Member Function Documentation

◆ setSampleRate()

void RDFImporterImpl::setSampleRate ( int  sampleRate)
inline

Definition at line 56 of file RDFImporter.cpp.

References m_sampleRate.

Referenced by RDFImporter::setSampleRate().

◆ isOK()

bool RDFImporterImpl::isOK ( )

Definition at line 160 of file RDFImporter.cpp.

References m_errorString.

Referenced by RDFImporter::isOK().

◆ getErrorString()

QString RDFImporterImpl::getErrorString ( ) const

Definition at line 166 of file RDFImporter.cpp.

References m_errorString.

Referenced by RDFImporter::getErrorString().

◆ getDataModels()

std::vector< Model * > RDFImporterImpl::getDataModels ( ProgressReporter reporter)

◆ expand()

Uri RDFImporterImpl::expand ( QString  s)
inlineprotected

◆ getDataModelsAudio()

◆ getDataModelsSparse()

void RDFImporterImpl::getDataModelsSparse ( std::vector< Model * > &  models,
ProgressReporter reporter 
)
protected

!! NB we're using rather old terminology for these things, apparently:

Definition at line 483 of file RDFImporter.cpp.

References expand(), fillModel(), RealTime::fromXsdDuration(), m_audioModelMap, m_sampleRate, m_store, RealTime::realTime2Frame(), ProgressReporter::setMessage(), Model::setRDFTypeURI(), and Model::setSourceModel().

Referenced by getDataModels().

◆ getDataModelsDense()

◆ getDenseModelTitle()

void RDFImporterImpl::getDenseModelTitle ( Model m,
QString  featureUri,
QString  featureTypeUri 
)
protected

Definition at line 392 of file RDFImporter.cpp.

References expand(), m_store, and SVDEBUG.

Referenced by getDataModelsDense().

◆ getDenseFeatureProperties()

void RDFImporterImpl::getDenseFeatureProperties ( QString  featureUri,
int &  sampleRate,
int &  windowLength,
int &  hopSize,
int &  width,
int &  height 
)
protected

Definition at line 418 of file RDFImporter.cpp.

References expand(), and m_store.

Referenced by getDataModelsDense().

◆ fillModel()

void RDFImporterImpl::fillModel ( Model model,
long  ftime,
long  fduration,
bool  haveDuration,
std::vector< float > &  values,
QString  label 
)
protected

Member Data Documentation

◆ m_store

BasicStore* RDFImporterImpl::m_store
protected

◆ m_uristring

QString RDFImporterImpl::m_uristring
protected

Definition at line 67 of file RDFImporter.cpp.

Referenced by getDataModelsAudio().

◆ m_errorString

QString RDFImporterImpl::m_errorString
protected

◆ m_audioModelMap

std::map<QString, Model *> RDFImporterImpl::m_audioModelMap
protected

Definition at line 69 of file RDFImporter.cpp.

Referenced by getDataModelsAudio(), and getDataModelsSparse().

◆ m_sampleRate

int RDFImporterImpl::m_sampleRate
protected

◆ m_labelValueMap

std::map<Model *, std::map<QString, float> > RDFImporterImpl::m_labelValueMap
protected

Definition at line 72 of file RDFImporter.cpp.

Referenced by fillModel().


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