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

ApplicationAnalyzer Class Reference

Inheritance diagram for ApplicationAnalyzer

Inheritance graph
[legend]
Collaboration diagram for ApplicationAnalyzer:

Collaboration graph
[legend]
List of all members.

Public Methods

 ApplicationAnalyzer (const cmt_string& package_name, Constituent& constituent_ref)
void end ()

Constructor & Destructor Documentation

ApplicationAnalyzer::ApplicationAnalyzer ( const cmt_string & package_name,
Constituent & constituent_ref )
 

Definition at line 648 of file cmt_triggers.cxx.

00649                                                                         :
00650     DependencyAnalyzer (package_name, constituent_ref)
00651 {
00652 }


Member Function Documentation

void ApplicationAnalyzer::end ( ) [virtual]
 

Reimplemented from DependencyAnalyzer.

Definition at line 654 of file cmt_triggers.cxx.

00655 {
00656   cmt_string macro_name;
00657   cmt_string output;
00658 
00659   int i;
00660 
00661   if (uses.size () > 0)
00662     {
00663       for (i = 0; i < uses.size (); i++)
00664         {
00665           Libmap& libmap = *(uses[i]);
00666 
00667           libmap.set_used ();
00668         }
00669 
00670       Libmap::LibmapVector& table = Libmap::libmaps ();
00671 
00672       macro_name = constituent.name;
00673       macro_name += "linkopts";
00674 
00675       output  = "macro_prepend ";
00676       output += macro_name;
00677       output += " \"";
00678       for (i = 0; i < table.size (); i++)
00679         {
00680           Libmap& libmap = table[i];
00681           
00682           if (libmap.used)
00683             {
00684               output += "$(implied_library_prefix)";
00685               output += libmap.name;
00686               output += "$(implied_library_suffix) ";
00687             }
00688         }
00689       output += "\"";
00690 
00691       Cmt::parse_requirements_text (output, "", 0);
00692 
00693       Symbol* macro = Symbol::find (macro_name);
00694       output = macro_name;
00695       output += "=";
00696       output += macro->build_macro_value ();
00697 
00698       cout << output << endl;
00699     }
00700 }


The documentation for this class was generated from the following file:
Generated at Thu May 16 16:27:34 2002 for CMT by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000