Fréchet View  1.6.0
A Tool for Exploring Fréchet Distance Algorithms
frechet::input::DataPath Class Reference

Detailed Description

location of input data in an XML file

Inpupt data (SVG,IPE) contains XML data. The location of the paths we ant to read consists of:

  • file path
  • file within zipped file (optional)
  • XQuery path to actual poly data (for xml based files)

String format file path [! zip file path] [? xml path] [ [min,max] interva]]

Author
Peter Schäfer

Definition at line 24 of file datapath.h.

#include <datapath.h>

Public Member Functions

QFileInfo getFile () const
 
QFileInfo getArchFile () const
 
QString getSelector () const
 
IndexInterval getInterval () const
 
 DataPath (QString arg)
 constructor from string More...
 

Static Public Attributes

static const QString SVG_QUERY
 default xml path for svg files (= all path elements and the attribute "d") More...
 
static const QString IPE_QUERY
 default xml path for ipe files More...
 
static const QString KML_QUERY
 Google earth files. Not implemented. More...
 
static const QStringList INPUT_FILTERS
 name filters for file input dialogs More...
 

Private Attributes

QFileInfo file
 file More...
 
QFileInfo archFile
 file inside zip (not used) More...
 
QString selector
 XQuery path into XML structure. More...
 
IndexInterval intval
 which entries to read More...
 

Static Private Attributes

static const char ZIP_SEPARATOR = '!'
 
static const char XML_SEPARATOR = '?'
 
static const char INTVAL_SEPARATOR = '['
 

Constructor & Destructor Documentation

◆ DataPath()

DataPath::DataPath ( QString  arg)

constructor from string

Parameters
argpath encoded as string

Definition at line 38 of file datapath.cpp.

Member Function Documentation

◆ getArchFile()

QFileInfo frechet::input::DataPath::getArchFile ( ) const
inline
Returns
path inside zip file (not used)

Definition at line 49 of file datapath.h.

◆ getFile()

QFileInfo frechet::input::DataPath::getFile ( ) const
inline
Returns
path to file

Definition at line 47 of file datapath.h.

◆ getInterval()

IndexInterval frechet::input::DataPath::getInterval ( ) const
inline
Returns
number of entries to read

Definition at line 53 of file datapath.h.

◆ getSelector()

QString frechet::input::DataPath::getSelector ( ) const
inline
Returns
path to XML structure

Definition at line 51 of file datapath.h.

Member Data Documentation

◆ archFile

QFileInfo frechet::input::DataPath::archFile
private

file inside zip (not used)

Definition at line 27 of file datapath.h.

◆ file

QFileInfo frechet::input::DataPath::file
private

file

Definition at line 26 of file datapath.h.

◆ INPUT_FILTERS

const QStringList DataPath::INPUT_FILTERS
static
Initial value:
= QStringList()
<< "Input Files (*.svg *.ipe *.js *.jscript)"
<< "Vector Graphics (*.svg *.ipe)"
<< "Scripts (*.js *.jscript)"
<< "Any files (*)"

name filters for file input dialogs

Accepted input files:

  • *.svg, *.ipe
  • *.js, *.jscript

Definition at line 44 of file datapath.h.

◆ intval

IndexInterval frechet::input::DataPath::intval
private

which entries to read

Definition at line 29 of file datapath.h.

◆ INTVAL_SEPARATOR

const char frechet::input::DataPath::INTVAL_SEPARATOR = '['
staticprivate

Definition at line 33 of file datapath.h.

◆ IPE_QUERY

const QString DataPath::IPE_QUERY
static

default xml path for ipe files

Within an IPE file, we look for //page//path

Definition at line 39 of file datapath.h.

◆ KML_QUERY

const QString frechet::input::DataPath::KML_QUERY
static

Google earth files. Not implemented.

Definition at line 41 of file datapath.h.

◆ selector

QString frechet::input::DataPath::selector
private

XQuery path into XML structure.

Definition at line 28 of file datapath.h.

◆ SVG_QUERY

const QString DataPath::SVG_QUERY
static

default xml path for svg files (= all path elements and the attribute "d")

Within an SVG file, we look for /svg/g//path/data or /svg//path/data

Definition at line 37 of file datapath.h.

◆ XML_SEPARATOR

const char frechet::input::DataPath::XML_SEPARATOR = '?'
staticprivate

Definition at line 32 of file datapath.h.

◆ ZIP_SEPARATOR

const char frechet::input::DataPath::ZIP_SEPARATOR = '!'
staticprivate

Definition at line 31 of file datapath.h.


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