Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

CPPFile Class Reference

#include <cppFile.h>

List of all members.

Public Types

enum  Source { S_local, S_alternate, S_system, S_none }

Public Member Functions

 CPPFile (const Filename &filename="", const Filename &filename_as_referenced="", Source source=S_none)
 CPPFile (const CPPFile &copy)
void operator= (const CPPFile &copy)
 ~CPPFile ()
bool is_c_or_i_file () const
bool is_c_file () const
void replace_nearer (const CPPFile &other)
bool operator< (const CPPFile &other) const
bool operator== (const CPPFile &other) const
bool operator!= (const CPPFile &other) const
const char * c_str () const
bool empty () const

Static Public Member Functions

bool is_c_or_i_file (const Filename &filename)
bool is_c_file (const Filename &filename)

Public Attributes

Filename _filename
Filename _filename_as_referenced
Source _source


Member Enumeration Documentation

enum CPPFile::Source
 

Enumeration values:
S_local 
S_alternate 
S_system 
S_none 

Definition at line 34 of file cppFile.h.

Referenced by CPPPreprocessor::handle_include_directive().


Constructor & Destructor Documentation

CPPFile::CPPFile const Filename filename = "",
const Filename filename_as_referenced = "",
Source  source = S_none
 

Definition at line 30 of file cppFile.cxx.

References _filename, _filename_as_referenced, and Filename::set_text().

CPPFile::CPPFile const CPPFile &  copy  ) 
 

Definition at line 46 of file cppFile.cxx.

CPPFile::~CPPFile  ) 
 

Definition at line 71 of file cppFile.cxx.


Member Function Documentation

const char * CPPFile::c_str  )  const
 

Definition at line 197 of file cppFile.cxx.

References _filename, and Filename::c_str().

bool CPPFile::empty  )  const
 

Definition at line 207 of file cppFile.cxx.

References _filename, and Filename::empty().

Referenced by CPPPreprocessor::error(), and CPPPreprocessor::warning().

bool CPPFile::is_c_file const Filename filename  )  [static]
 

Definition at line 132 of file cppFile.cxx.

References Filename::get_extension().

bool CPPFile::is_c_file  )  const
 

Definition at line 119 of file cppFile.cxx.

References _filename.

Referenced by InterrogateBuilder::define_struct_type(), InterrogateBuilder::scan_element(), InterrogateBuilder::scan_function(), and InterrogateBuilder::scan_manifest().

bool CPPFile::is_c_or_i_file const Filename filename  )  [static]
 

Definition at line 96 of file cppFile.cxx.

References Filename::get_extension().

bool CPPFile::is_c_or_i_file  )  const
 

Definition at line 83 of file cppFile.cxx.

References _filename.

Referenced by InterrogateBuilder::should_include().

bool CPPFile::operator!= const CPPFile &  other  )  const
 

Definition at line 187 of file cppFile.cxx.

References _filename.

bool CPPFile::operator< const CPPFile &  other  )  const
 

Definition at line 167 of file cppFile.cxx.

References _filename.

void CPPFile::operator= const CPPFile &  copy  ) 
 

Definition at line 59 of file cppFile.cxx.

References _filename, _filename_as_referenced, and _source.

bool CPPFile::operator== const CPPFile &  other  )  const
 

Definition at line 177 of file cppFile.cxx.

References _filename.

void CPPFile::replace_nearer const CPPFile &  other  ) 
 

Definition at line 155 of file cppFile.cxx.

References _source.


Member Data Documentation

Filename CPPFile::_filename
 

Definition at line 63 of file cppFile.h.

Referenced by c_str(), CPPFile(), empty(), is_c_file(), is_c_or_i_file(), CPPPreprocessor::InputFile::open(), operator!=(), operator<(), operator<<(), operator=(), and operator==().

Filename CPPFile::_filename_as_referenced
 

Definition at line 64 of file cppFile.h.

Referenced by CPPFile(), InterrogateBuilder::define_struct_type(), operator=(), InterrogateBuilder::scan_element(), InterrogateBuilder::scan_function(), and InterrogateBuilder::scan_manifest().

Source CPPFile::_source
 

Definition at line 65 of file cppFile.h.

Referenced by InterrogateBuilder::define_struct_type(), operator=(), replace_nearer(), InterrogateBuilder::scan_element(), InterrogateBuilder::scan_function(), and InterrogateBuilder::scan_manifest().


The documentation for this class was generated from the following files:
Generated on Fri Apr 18 01:34:48 2003 for DTool by doxygen1.3