Puma Reference Manual Puma: Puma::CFileInfo Class Reference



Puma::CFileInfo Class Reference

#include <Puma/CFileInfo.h>

Inheritance diagram for Puma::CFileInfo:

Inheritance graph

List of all members.


Detailed Description

Semantic information about a source file (translation unit).

A source file has its own scope, the so-called file scope.

Public Member Functions

 CFileInfo ()
 Constructor.
 ~CFileInfo ()
 Destructor.
UnitPrimary () const
 Get the token chain of the source file.
void Primary (Unit *unit)
 Set the token chain of the source file.
bool haveCBuiltins () const
 Check if C compiler build-in functions are defined for the source file.
bool haveCCBuiltins () const
 Check if C++ compiler build-in functions are defined for the source file.
void haveCBuiltins (bool v)
 Set whether C compiler build-in functions are defined for the source file.
void haveCCBuiltins (bool v)
 Set whether C++ compiler build-in functions are defined for the source file.


Constructor & Destructor Documentation

Puma::CFileInfo::CFileInfo (  )  [inline]

Constructor.

Puma::CFileInfo::~CFileInfo (  )  [inline]

Destructor.

If the object type is CObjectInfo::FILE_INFO, then CObjectInfo::CleanUp() is called.


Member Function Documentation

Unit * Puma::CFileInfo::Primary (  )  const [inline]

Get the token chain of the source file.

void Puma::CFileInfo::Primary ( Unit unit  )  [inline]

Set the token chain of the source file.

Parameters:
unit The token chain.

bool Puma::CFileInfo::haveCBuiltins (  )  const [inline]

Check if C compiler build-in functions are defined for the source file.

bool Puma::CFileInfo::haveCCBuiltins (  )  const [inline]

Check if C++ compiler build-in functions are defined for the source file.

void Puma::CFileInfo::haveCBuiltins ( bool  v  )  [inline]

Set whether C compiler build-in functions are defined for the source file.

Parameters:
v true if C build-in functions are defined.

void Puma::CFileInfo::haveCCBuiltins ( bool  v  )  [inline]

Set whether C++ compiler build-in functions are defined for the source file.

Parameters:
v true if C++ build-in functions are defined.




Puma Reference Manual. Created on 5 Nov 2008.