Mixxx

Parser Class Reference

#include <parser.h>

Inheritance diagram for Parser:

List of all members.

Public Member Functions

 Parser ()
 ~Parser ()
virtual QList< QString > parse (QString)=0

Protected Member Functions

long countParsed ()
void clearLocations ()
bool isBinary (QString)
bool isFilepath (QString)

Static Protected Member Functions

static bool isUtf8 (const char *string)

Protected Attributes

QList< QString > m_sLocations

Detailed Description

Developer Information: This is the rootclass for all parser classes for the Importer class. It can be used to write a new type-specific parser by deriving a new class from it and overwrite the parse function and add class specific functions to it afterwards fro proper functioning

Definition at line 29 of file parser.h.


Constructor & Destructor Documentation

Parser::Parser ( )
Author:
Ingo Kossyk (kossyki@cs.tu-berlin.de)

Definition at line 23 of file parser.cpp.

Parser::~Parser ( )

Definition at line 27 of file parser.cpp.


Member Function Documentation

void Parser::clearLocations ( ) [protected]

Clears m_psLocations

Definition at line 33 of file parser.cpp.

Here is the caller graph for this function:

long Parser::countParsed ( ) [protected]

Returns the number of parsed locations

Definition at line 39 of file parser.cpp.

bool Parser::isBinary ( QString  filename) [protected]

Checks if the file does contain binary content

Definition at line 51 of file parser.cpp.

Here is the caller graph for this function:

bool Parser::isFilepath ( QString  sFilepath) [protected]

Checks if the given string represents a local filepath

Definition at line 44 of file parser.cpp.

bool Parser::isUtf8 ( const char *  string) [static, protected]

Definition at line 84 of file parser.cpp.

Here is the caller graph for this function:

virtual QList<QString> Parser::parse ( QString  ) [pure virtual]

Can be called to parse a pls file Note for developers: This function should return an empty PtrList or 0 in order for the trackimporter to function

Implemented in ParserM3u, and ParserPls.

Here is the caller graph for this function:


Member Data Documentation

QList<QString> Parser::m_sLocations [protected]

Pointer to the parsed Filelocations

Definition at line 43 of file parser.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines