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

ScriptBuilder Class Reference

Inheritance diagram for ScriptBuilder:

[legend]
Collaboration diagram for ScriptBuilder:

[legend]
List of all members.

Public Methods

const cmt_string? build (const Symbol &symbol, const cmt_string &tag_name="")
const cmt_string? clean (const Symbol &symbol, const cmt_string &tag_name="")

Member Function Documentation

const cmt_string ScriptBuilder::build (? const Symbol &? ? symbol,
const cmt_string &? ? tag_name = ""
)? [virtual]
?

Implements ValueBuilder.

Definition at line 2493 of file cmt_symbol.cxx.

References Use::discarded, SymbolValueList::discarded, Symbol::name, cmt_vector< SymbolValueList >::size(), SymbolValueList::use, and Symbol::value_lists.

02495 {
02496     // Control of recursivity
02497   static int level = 0;
02498 
02499   static const cmt_string empty = "";
02500 
02501   if (symbol.value_lists.size () > 0)
02502     {
02503       const SymbolValueList& value_list = symbol.value_lists[0];
02504 
02505       if (value_list.discarded) return (empty);
02506 
02507       if ((value_list.use != 0) &&
02508           (value_list.use->discarded)) return (empty);
02509     }
02510 
02511   return (symbol.name);
02512 }

const cmt_string ScriptBuilder::clean (? const Symbol &? ? symbol,
const cmt_string &? ? tag_name = ""
)? [inline, virtual]
?

Implements ValueBuilder.

Definition at line 64 of file cmt_symbol.cxx.

00066       {
00067         static const cmt_string empty = "";
00068         return (empty);
00069       }

The documentation for this class was generated from the following file:
Generated on Wed Sep 1 11:00:55 2004 for CMT by 1.2.18