Main?Page | Class?Hierarchy | Class?List | File?List | Class?Members | File?Members

FAwk Class Reference

#include <cmt_awk.h>

Inheritance diagram for FAwk:

[legend]
Collaboration diagram for FAwk:

[legend]
List of all members.

Public Member Functions

condition? run (const cmt_string &file_name, const cmt_string &pattern="")
condition? run (const cmt_string &text, const cmt_regexp &expression)

Protected Attributes

cmt_string? m_dir_name
cmt_string? m_file_name

Member Function Documentation

Awk::condition FAwk::run (? const cmt_string &? text,
const cmt_regexp &? expression
)?
?

Reimplemented from Awk.

Definition at line 474 of file cmt_awk.cxx.

References CmtSystem::basename(), CmtSystem::dirname(), m_dir_name, m_file_name, cmt_string::read(), Awk::run(), and CmtSystem::test_file().

00476 {
00477   if (!CmtSystem::test_file (file_name)) return (failed);
00478 
00479   CmtSystem::basename (file_name, m_file_name);
00480   CmtSystem::dirname (file_name, m_dir_name);
00481 
00482   cmt_string text;
00483 
00484   text.read (file_name);
00485 
00486   return (Awk::run (text, expression));
00487 }

Awk::condition FAwk::run (? const cmt_string &? file_name,
const cmt_string &? pattern = ""
)?
?

Reimplemented from Awk.

Definition at line 458 of file cmt_awk.cxx.

References CmtSystem::basename(), CmtSystem::dirname(), m_dir_name, m_file_name, cmt_string::read(), Awk::run(), and CmtSystem::test_file().

Referenced by LibraryGenerator::analyze_file(), PrototypeGenerator::build(), Cmt::configure_current_dir(), Cmt::do_run_sequence(), and UseAnalyzer::run().

00460 {
00461   if (!CmtSystem::test_file (file_name)) return (failed);
00462 
00463   CmtSystem::basename (file_name, m_file_name);
00464   CmtSystem::dirname (file_name, m_dir_name);
00465 
00466   cmt_string text;
00467 
00468   text.read (file_name);
00469 
00470   return (Awk::run (text, pattern));
00471 }

Member Data Documentation

cmt_string FAwk::m_dir_name [protected]
?

Definition at line 90 of file cmt_awk.h.

Referenced by run().

cmt_string FAwk::m_file_name [protected]
?

Definition at line 91 of file cmt_awk.h.

Referenced by run().


The documentation for this class was generated from the following files:
Generated on Mon May 2 10:25:38 2005 for CMT by 1.3.5