Class HeaderFile.

Inherits File

The HeaderFile class models a header file.

The HeaderFile file is viewed as a collection of class { … } statements, each of which is scanned for member functions and superclass names. Other content is ignored (for now - enums may one day be handled).

HeaderFile::HeaderFile( const String & file )

Constructs a HeaderFile for file, which is presumed to be in the current directory.

The file is parsed immediately.

static HeaderFile * HeaderFile::find( const String & s )

Returns a pointer to the HeaderFile whose unqualified file name is s, or a null pointer if there is no such HeaderFile.

void HeaderFile::parse()

Parses this header file and creates Class and Function objects as appropriate.

The parsing is minimalistic: All it does is look for a useful subset of class declarations, and process those.

This web page based on source code belonging to Oryx Mail Systems GmbH. All rights reserved.