Home | Modules | Class Hierarchy | Alphabetical List | Compound List | Related Pages

FileTypeImpl Class Reference
[Parsers]

Inheritance diagram for FileTypeImpl:

FileType

Detailed Description

File Type storage implementation.

Contains different attributes of HRC file type.


Public Member Functions

const StringgetName ()
const StringgetGroup ()
const StringgetDescription ()
SchemegetBaseScheme ()
const StringenumerateParameters (int idx)
const StringgetParameterDescription (const String &name)
const StringgetParamValue (const String &name)
const StringgetParamDefaultValue (const String &name)
void setParamValue (const String &name, const String *value)
double getPriority (const String *fileName, const String *fileContent) const
 Returns total priority, accordingly to all it's choosers (filename and firstline choosers).

Protected Member Functions

 FileTypeImpl (HRCParserImpl *hrcParser)

Protected Attributes

bool protoLoaded
 is prototype component loaded
bool typeLoaded
 is type component loaded
bool loadDone
 is type references fully resolved
bool loadBroken
 is initial type load failed
bool inputSourceLoading
 is this IS loading was started
Stringname
Stringgroup
Stringdescription
bool isPackage
HRCParserImplhrcParser
SchemeImplbaseScheme
Vector< FileTypeChooser * > chooserVector
Hashtable< String * > paramDefaultHash
Hashtable< String * > paramHash
Hashtable< String * > paramDescriptionHash
Vector< String * > paramVector
Vector< String * > importVector
InputSourceinputSource


Member Function Documentation

double FileTypeImpl::getPriority const String fileName,
const String fileContent
const [inline]
 

Returns total priority, accordingly to all it's choosers (filename and firstline choosers).

All fileContent RE's are tested only if priority of previously computed fileName RE's is more, than zero.

Parameters:
fileName String representation of file name (without path). If null, method skips filename matching, and starts directly with fileContent matching.
fileContent Some part of file's starting content (first line, for example). If null, skipped.
Returns:
Computed total filetype priority.


Colorer-take5 Library. Copyright © 1999-2006 Igor Russkih.
Generated at Fri Nov 24 17:13:12 2006 by doxygen 1.4.6.