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

# TriggerGenerator Class Reference

`#include <cmt_triggers.h>`

List of all members.

## Static Public Methods
void | run (const cmt_string& constituent_name)

## Member Function Documentation

void TriggerGenerator::run ( | const cmt_string & constituent_name )`[static]`

| Definition at line 785 of file cmt_triggers.cxx. Referenced by Cmt::do_build_triggers().
    00786 {
    00787   Constituent* constituent = Constituent::find (constituent_name);
    00788
    00789   Use* use = &(Use::current ());
    00790   cmt_string package = use->package;
    00791
    00792     // UseAnalyzer use_analyzer (package);
    00793     // use_analyzer.run ("cmt show uses -quiet");
    00794
    00795   UseAnalyzer use_analyzer;
    00796   use_analyzer.run (constituent_name);
    00797
    00798   cmt_string file_name;
    00799
    00800   file_name = "./";
    00801   file_name += constituent_name;
    00802   file_name += "_dependencies.";
    00803 #ifdef WIN32
    00804   file_name += "nmake";
    00805 #else
    00806   file_name += "make";
    00807 #endif
    00808
    00809   DependencyAnalyzer* analyzer = 0;
    00810
    00811   if (constituent->type == Library)
    00812     {
    00813       analyzer = new LibraryAnalyzer (package, *constituent);
    00814     }
    00815   else if (constituent->type == Application)
    00816     {
    00817       analyzer = new ApplicationAnalyzer (package, *constituent);
    00818     }
    00819   else
    00820     {
    00821       return;
    00822     }
    00823
    00824   if (analyzer->run (file_name) == Awk::failed)
    00825     {
    00826       cerr << "  File " << file_name << " not found" << endl;
    00827     }
    00828
    00829   delete analyzer;
    00830 }

The documentation for this class was generated from the following files:

- cmt_triggers.h
- cmt_triggers.cxx