Пример #1
0
//-----------------------------------------------------------------------------
//
WaypointGeo::WaypointGeo( GeoReporter         *reportController,
                          const char          *filename )
 :  GeoController( reportController ),
    m_WaypointInterfaceItem()
{
    beginParsing();
    parse( filename );
    endParsing( GeoController::defaultNrMosaicCells );
}
Пример #2
0
/// reads the content of a single file
/// @param device the device to read from. The device NEEDS to be open!!
/// @return the language grammar or 0 on error
TextGrammar* TmLanguageParser::parse(QIODevice* device)
{
    TextGrammar* result=0;

    if( beginParsing(device) ) {
        QVariant plist = readNextPlistType( );
        result = createLanguage( plist );
    }

    if( !endParsing() ) {
        delete result;
        result = 0;
    }

    // returns the language
    return result;
}