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

ApplicationAnalyzer Class Reference

Inheritance diagram for ApplicationAnalyzer

[legend]
Collaboration diagram for ApplicationAnalyzer:

[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 649 of file cmt_triggers.cxx.

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


Member Function Documentation

void ApplicationAnalyzer::end ( ) [virtual]
?

Reimplemented from DependencyAnalyzer.

Definition at line 655 of file cmt_triggers.cxx.

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

The documentation for this class was generated from the following file:
Generated at Mon Aug 11 12:55:46 2003 for CMT by 1.2.3 written by , ??1997-2000