QCSParser Class

The QCSParser class defines the interface of display file parser. More...

Header: #include <QCSParser>
Inherits: QObject
Inherited By:

ADLParser, EDLParser, QMLParser, and UIParser

Properties

  • 1 property inherited from QObject

Public Functions

QCSParser(QObject *parent)
virtual ~QCSParser()
virtual QString description() = 0
virtual QString extension() = 0
virtual QString parseDisplayFile(QString filename, QMap<QString, QString> macros, bool partial = false) = 0
  • 32 public functions inherited from QObject

Additional Inherited Members

  • 1 public slot inherited from QObject
  • 2 signals inherited from QObject
  • 1 public variable inherited from QObject
  • 10 static public members inherited from QObject
  • 9 protected functions inherited from QObject
  • 2 protected variables inherited from QObject

Detailed Description

The QCSParser class defines the interface of display file parser.

This is the base class for display file parsers, which parses various display files and output equivalent QML files.

Pasers are loaded as plugins on demand and parse zero, one or more types of file.

Property Documentation

description : const QString

Descriptive text of this file parser.

Access functions:

virtual QString description() = 0

extension : const QString

File extension supported by this parser.

Access functions:

virtual QString extension() = 0

Member Function Documentation

QCSParser::QCSParser(QObject *parent)

Default constructs an instance of QCSParser.

[virtual] QCSParser::~QCSParser()

Destroys the instance of QCSParser. The destructor is virtual.

[pure virtual] QString QCSParser::parseDisplayFile(QString filename, QMap<QString, QString> macros, bool partial = false)

Parse the given display file.

The file parser must implements this to parse the given filename with macros substitution. The returned QML representation should be a standard QML source, unless partial is specified in which only the item definitions are returned excluding import statements and root item.