FileHdr Class Reference
Searches directories to find source files. More...
#include <fileHdr.h>
Public Member Functions | |
FileHdr () | |
Allocate space for storing the full path for file names. | |
~FileHdr () | |
void | handleFile (const char *filename) |
Sets mp_fullPath to absolute path, fn to relative path. | |
void | scanDir (const char *dirName) |
Scan a directory for files and directories. | |
void | addTraceString (const char *fullName) |
Constructs a AddTraceString object and hands it off. | |
Private Member Functions | |
void | privateHdlFile (const char *fileName) |
Private Attributes | |
char * | mp_fullPath |
This variable holds the full path to the current file name. | |
int | m_fullPathLen |
The current number of character in mp_fullPath. | |
int | m_fullPathCapacity |
The max number of character available in mp_fullPath. |
Detailed Description
Searches directories to find source files.
- Description
- This class is responsible for searching directories for source files. It will recursively descend a directory tree and send each source file to the ats object for actual instrumentation.
- Design Considerations
- It constructs a addTraceString object for each source file.
- Source files are deemed to be files that have the following suffixes: .c .C .cpp .cxx .cc .h .hpp
Constructor & Destructor Documentation
|
Allocate space for storing the full path for file names.
|
|
|
Member Function Documentation
|
Constructs a AddTraceString object and hands it off.
|
|
Sets mp_fullPath to absolute path, fn to relative path.
|
|
|
|
Scan a directory for files and directories.
|
The documentation for this class was generated from the following files:
- fileHdr.h
- fileHdr.C