class CParsedContainer
|
Represents a parsed object that can store other objects. More... |
|
|
Public Methods
Public Members
Protected Members
Represents a parsed object that can store other objects.
The objects can be variables, functions or structures.
Since this is a special case of a parsed item, the container
inherits CParsedItem.
CParsedContainer ()
| CParsedContainer |
~CParsedContainer ()
| ~CParsedContainer |
[protected]
[protected]
[protected]
[protected]
| bool useFullPath
| useFullPath |
[protected]
Add a struct.
Parameters:
| aStruct | The structure to add to the container.
|
Add an attribute.
Parameters:
| anAttribute | Attribute to add to the container.
|
Add a method.
Parameters:
| aMethod | Method to add to the container.
|
inline void setUseFullpath ( bool state )
| setUseFullpath |
Tells if the container should store objects using their full path.
Parameters:
| state | If to use full path or not.
|
Get a method by comparing with another method.
Parameters:
| aMethod | Method to compare with.
|
QList<CParsedMethod> * getMethodByName ( const char *aName )
| getMethodByName |
Get all methods matching the supplied name.
Parameters:
Returns: List of methods matching the name.
CParsedMethod * getMethodByNameAndArg ( const char *aName )
| getMethodByNameAndArg |
Get a method by using its' name and arguments.
Parameters:
| aName | Output from a CParsedMethod->asString() call.
|
Returns: Pointer to the method or NULL if not found.
CParsedStruct * getStructByName ( const char *aName )
| getStructByName |
Get a struct by using it's name.
Parameters:
| aName | Name of the struct to fetch.
|
Returns: Pointer to the struct or NULL if not found.
Get a attribute by using its' name.
Parameters:
| aName | Name of the attribute to fetch.
|
Returns: Pointer to the attribute or NULL if not found.
QList<CParsedMethod> * getSortedMethodList ()
| getSortedMethodList |
QStrList * getSortedAttributeAsStringList ()
| getSortedAttributeAsStringList |
Get all attributes in their string reprentation in sorted order.
Returns: List of attributes in sorted order.
QStrList * getSortedStructNameList ()
| getSortedStructNameList |
Get the names of all structures in a sorted list.
Returns: List of all structs in alpabetical order.
QList<CParsedStruct> * getSortedStructList ()
| getSortedStructList |
bool hasAttribute ( const char *aName )
| hasAttribute |
Does a attribute exist in the store?
Parameters:
| aName | Name of the attribute to check if it exists.
|
Returns: Does the attribute exist in the container.
bool hasStruct ( const char *aName )
| hasStruct |
Does a struct exist in the store?
Parameters:
| aName | Name of the struct to check if it exists.
|
void removeWithReferences ( const char *aFile )
| removeWithReferences |
Remove all items in the store with references to the file.
Parameters:
| aFile | The file to check references to.
|
Remove a method matching the specification.
Parameters:
| aMethod | Specification of the method.
|
void removeAttribute ( const char *aName )
| removeAttribute |
Remove an attribute with a specified name.
Parameters:
| aName | Name of the attribute to remove.
|
void removeStruct ( const char *aName )
| removeStruct |
Remove a struct with a specified name.
Parameters:
| aName | Name of the struct to remove.
|
[virtual]
QString asPersistantString ( QString &str )
| asPersistantString |
[virtual]
Return a string made for persistant storage.
Parameters:
| str | String to store the result in.
|
Returns: Pointer to str.
int fromPersistantString ( const char *, int startPos )
| fromPersistantString |
[virtual]
Initialize the object from a persistant string.
Parameters:
| str | String to initialize from.
|
| startPos | Position(0-based) at which to start.
|
- Author: Jonas Nordin
- Generated: jr on radge on Wed Sep 25 00:11:47 2002, using kdoc 2.0a54.