#include <Import.h>
Public Types | |
typedef std::map< std::string, Y2Namespace * > | module_map |
Public Member Functions | |
Import () | |
Import (const string &name, Y2Namespace *name_space=0) | |
~Import () | |
int | import (const string &name, Y2Namespace *preloaded_namespace=0) |
string | name () const |
Y2Namespace * | nameSpace () const |
Static Public Member Functions | |
static void | disableTracking () |
static void | enableTracking () |
Protected Attributes | |
Ustring | m_name |
module_map::iterator | m_module |
Static Protected Attributes | |
static module_map | m_active_modules |
Static Private Attributes | |
static int | m_disable_tracking = 0 |
static std::stack< std::pair < string, SymbolTable * > > | m_table_stack |
typedef std::map<std::string, Y2Namespace *> Import::module_map |
Import::Import | ( | ) |
Import::Import | ( | const string & | name, | |
Y2Namespace * | name_space = 0 | |||
) |
References SymbolEntry::emptyUstring, and m_name.
Import::~Import | ( | ) |
void Import::disableTracking | ( | ) | [static] |
void Import::enableTracking | ( | ) | [static] |
References SymbolTable::enableUsage(), m_disable_tracking, m_table_stack, and y2debug.
Referenced by YSImport::YSImport().
int Import::import | ( | const string & | name, | |
Y2Namespace * | preloaded_namespace = 0 | |||
) |
References SymbolEntry::_nameHash, SymbolTable::disableUsage(), Ustring::empty(), Y2ComponentBroker::getNamespaceComponent(), Y2Component::import(), m_active_modules, m_disable_tracking, m_module, m_name, m_table_stack, Y2Component::name(), SymbolTable::startUsage(), Y2Namespace::table(), y2debug, y2error, y2internal, and ycp2error.
Y2Namespace * Import::nameSpace | ( | ) | const |
References m_active_modules, and m_module.
Referenced by YSImport::evaluate(), YSImport::toStream(), YSImport::toXml(), and YSImport::YSImport().
Import::module_map Import::m_active_modules [static, protected] |
Referenced by import(), and nameSpace().
int Import::m_disable_tracking = 0 [static, private] |
Referenced by disableTracking(), enableTracking(), and import().
module_map::iterator Import::m_module [protected] |
Referenced by import(), nameSpace(), YSImport::toStream(), and YSImport::YSImport().
Ustring Import::m_name [protected] |
Referenced by YSImport::evaluate(), import(), Import(), YSImport::name(), name(), YSImport::toStream(), YSImport::toString(), YSImport::toXml(), and YSImport::YSImport().
std::stack< std::pair< string, SymbolTable * > > Import::m_table_stack [static, private] |
Referenced by enableTracking(), and import().