svcore  1.9
RDFImporterImpl Class Reference
Collaboration diagram for RDFImporterImpl:

List of all members.

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 ( QString  url,
int  sampleRate 
)

!! retrieve data if remote... then

Definition at line 127 of file RDFImporter.cpp.

References m_errorString, and m_store.

Definition at line 154 of file RDFImporter.cpp.

References m_store.


Member Function Documentation

void RDFImporterImpl::setSampleRate ( int  sampleRate) [inline]

Definition at line 56 of file RDFImporter.cpp.

References m_sampleRate.

Referenced by RDFImporter::setSampleRate().

Definition at line 160 of file RDFImporter.cpp.

References m_errorString.

Referenced by RDFImporter::isOK().

Definition at line 166 of file RDFImporter.cpp.

References m_errorString.

Referenced by RDFImporter::getErrorString().

Uri RDFImporterImpl::expand ( QString  s) [inline, protected]
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().

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().

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().

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

Member Data Documentation

QString RDFImporterImpl::m_uristring [protected]

Definition at line 67 of file RDFImporter.cpp.

Referenced by getDataModelsAudio().

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

Definition at line 69 of file RDFImporter.cpp.

Referenced by getDataModelsAudio(), and getDataModelsSparse().

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: