Pol  Revision:3cfda13
Pol::Core::CmdLevel Class Reference

#include <cmdlevel.h>


struct  SearchDir

Public Types

typedef std::vector< std::string > Aliases
typedef std::vector< SearchDirSearchList

Public Member Functions

 CmdLevel (Clib::ConfigElem &elem, int cmdlevelnum)
void add_searchdir (Plib::Package *pkg, const std::string &dir)
void add_searchdir_front (Plib::Package *pkg, const std::string &dir)
size_t estimateSize () const
bool matches (const std::string &name) const

Public Attributes

Aliases aliases
unsigned char cmdlevel
std::string name
SearchList searchlist

Detailed Description

Definition at line 28 of file cmdlevel.h.

Member Typedef Documentation

typedef std::vector<std::string> Pol::Core::CmdLevel::Aliases

Definition at line 50 of file cmdlevel.h.

Definition at line 47 of file cmdlevel.h.

Constructor & Destructor Documentation

Pol::Core::CmdLevel::CmdLevel ( Clib::ConfigElem elem,
int  cmdlevelnum 

Member Function Documentation

void Pol::Core::CmdLevel::add_searchdir ( Plib::Package pkg,
const std::string &  dir 
void Pol::Core::CmdLevel::add_searchdir_front ( Plib::Package pkg,
const std::string &  dir 
size_t Pol::Core::CmdLevel::estimateSize ( ) const

Definition at line 72 of file cmdlevel.cpp.

References aliases, name, and searchlist.

bool Pol::Core::CmdLevel::matches ( const std::string &  name) const

Definition at line 46 of file cmdlevel.cpp.

References aliases, name, and Pol::Clib::stringicmp().

Referenced by Pol::Core::FindCmdLevelByAlias().

Member Data Documentation

Aliases Pol::Core::CmdLevel::aliases

Definition at line 51 of file cmdlevel.h.

Referenced by CmdLevel(), estimateSize(), Pol::Core::implicit_package_cmds_cfg(), and matches().

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