#include <RDFImporter.h>

Inheritance diagram for RDFImporter:
Inheritance graph
Collaboration diagram for RDFImporter:
Collaboration graph

Public Types

enum  RDFDocumentType {
  AudioRefAndAnnotations, Annotations, AudioRef, OtherRDFDocument,
  NotRDF
}
 

Public Member Functions

 RDFImporter (QString url, sv_samplerate_t sampleRate=0)
 
virtual ~RDFImporter ()
 
void setSampleRate (sv_samplerate_t sampleRate)
 
bool isOK ()
 
QString getErrorString () const
 
std::vector< ModelIdgetDataModels (ProgressReporter *reporter)
 Return a list of models imported from the RDF source. More...
 

Static Public Member Functions

static QString getKnownExtensions ()
 Return the file extensions that we have data file readers for, in a format suitable for use with QFileDialog. More...
 
static RDFDocumentType identifyDocumentType (QUrl url)
 
static bool isPlausibleDocumentOfAnyKind (QUrl url)
 

Protected Attributes

RDFImporterImplm_d
 

Detailed Description

Definition at line 30 of file RDFImporter.h.

Member Enumeration Documentation

Enumerator
AudioRefAndAnnotations 
Annotations 
AudioRef 
OtherRDFDocument 
NotRDF 

Definition at line 57 of file RDFImporter.h.

Constructor & Destructor Documentation

RDFImporter::RDFImporter ( QString  url,
sv_samplerate_t  sampleRate = 0 
)

Definition at line 96 of file RDFImporter.cpp.

RDFImporter::~RDFImporter ( )
virtual

Definition at line 101 of file RDFImporter.cpp.

References m_d.

Member Function Documentation

QString RDFImporter::getKnownExtensions ( )
static

Return the file extensions that we have data file readers for, in a format suitable for use with QFileDialog.

For example, "*.rdf *.n3".

Definition at line 91 of file RDFImporter.cpp.

void RDFImporter::setSampleRate ( sv_samplerate_t  sampleRate)

Definition at line 107 of file RDFImporter.cpp.

References m_d, and RDFImporterImpl::setSampleRate().

bool RDFImporter::isOK ( )

Definition at line 113 of file RDFImporter.cpp.

References RDFImporterImpl::isOK(), and m_d.

QString RDFImporter::getErrorString ( ) const

Definition at line 119 of file RDFImporter.cpp.

References RDFImporterImpl::getErrorString(), and m_d.

std::vector< ModelId > RDFImporter::getDataModels ( ProgressReporter reporter)

Return a list of models imported from the RDF source.

The models have been newly created and registered with ById; the caller must arrange to release them.

Definition at line 125 of file RDFImporter.cpp.

References RDFImporterImpl::getDataModels(), and m_d.

RDFImporter::RDFDocumentType RDFImporter::identifyDocumentType ( QUrl  url)
static

Definition at line 795 of file RDFImporter.cpp.

References SVDEBUG.

bool RDFImporter::isPlausibleDocumentOfAnyKind ( QUrl  url)
static

Definition at line 889 of file RDFImporter.cpp.

References TextTest::isApparentTextDocument().

Member Data Documentation

RDFImporterImpl* RDFImporter::m_d
protected

Definition at line 70 of file RDFImporter.h.

Referenced by getDataModels(), getErrorString(), isOK(), setSampleRate(), and ~RDFImporter().


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