Pol  Revision:cb584c9
Pol::Core::CmdLevel Class Reference

#include <cmdlevel.h>

Classes

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 
)

Definition at line 57 of file cmdlevel.cpp.

References searchlist.

Referenced by CmdLevel().

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

Definition at line 61 of file cmdlevel.cpp.

References searchlist.

Referenced by Pol::Core::implicit_package_cmds_cfg(), and Pol::Core::process_package_cmds_cfg().

size_t Pol::Core::CmdLevel::estimateSize ( ) const

Definition at line 66 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().

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: