Pol
Revision:cb584c9
|
#include <pkg.h>
Public Member Functions | |
Package (const std::string &pkg_dir, Clib::ConfigElem &elem) | |
void | check_conflicts () const |
void | check_dependencies () const |
bool | check_replacements () const |
std::string | desc () const |
const std::string & | dir () const |
size_t | estimateSize () const |
const std::string & | name () const |
bool | provides_system_home_page () const |
const std::string & | version () const |
Private Member Functions | |
Package (const Package &) | |
Package & | operator= (const Package &) |
Private Attributes | |
PackageList | conflicts_ |
unsigned short | core_required_ |
std::string | core_versionstring_required_ |
std::string | dir_ |
std::string | name_ |
bool | provides_system_home_page_ |
PackageList | replaces_ |
PackageList | requires_ |
std::string | version_ |
Pol::Plib::Package::Package | ( | const std::string & | pkg_dir, |
Clib::ConfigElem & | elem | ||
) |
Definition at line 151 of file pkg.cpp.
References core_required_, core_versionstring_required_, Pol::Clib::mklower(), name_, Pol::Clib::ConfigElem::read_string(), Pol::Clib::ConfigElem::remove_string(), and Pol::Clib::ConfigElem::remove_ushort().
Referenced by Pol::Plib::load_package().
|
private |
void Pol::Plib::Package::check_conflicts | ( | ) | const |
Definition at line 244 of file pkg.cpp.
References conflicts_, desc(), Pol::Plib::PackageList::elems, ERROR_PRINT, and Pol::Plib::find_package().
Referenced by Pol::Plib::check_deps_for_package().
void Pol::Plib::Package::check_dependencies | ( | ) | const |
Definition at line 199 of file pkg.cpp.
References Pol::Plib::check_version2(), core_required_, core_versionstring_required_, desc(), dir_, Pol::Plib::PackageList::elems, ERROR_PRINT, Pol::Plib::find_package(), name_, requires_, and version_.
Referenced by Pol::Plib::check_deps_for_package().
bool Pol::Plib::Package::check_replacements | ( | ) | const |
Definition at line 181 of file pkg.cpp.
References desc(), Pol::Plib::PackageList::elems, Pol::Plib::find_package(), INFO_PRINT, Pol::Plib::remove_package(), and replaces_.
std::string Pol::Plib::Package::desc | ( | ) | const |
Definition at line 176 of file pkg.cpp.
Referenced by check_conflicts(), check_dependencies(), check_replacements(), Pol::Core::config_web_server(), Pol::Mobile::load_attribute_entry(), Pol::Plib::load_package(), and Pol::Core::load_vital_entry().
|
inline |
Definition at line 79 of file pkg.h.
Referenced by Pol::Items::ArmorDesc::ArmorDesc(), Pol::Core::BXMLfile::call_method_id(), Pol::Core::decode_page(), desc(), Pol::Core::full_scriptname(), Pol::Module::PackageObjImp::get_member(), Pol::Core::get_textcmd_help(), Pol::Core::GetCommandsInPackage(), Pol::Plib::GetPackageCfgPath(), Pol::Core::implicit_package_cmds_cfg(), Pol::Bscript::Compiler::includeModule(), Pol::Plib::load_package(), Pol::Plib::load_packages(), Pol::Module::FileAccessExecutorModule::mf_AppendToFile(), Pol::Module::FileAccessExecutorModule::mf_CreateDirectory(), Pol::Module::FileAccessExecutorModule::mf_FileExists(), Pol::Module::FileAccessExecutorModule::mf_ListDirectory(), Pol::Module::FileAccessExecutorModule::mf_LogToFile(), Pol::Module::FileAccessExecutorModule::mf_OpenBinaryFile(), Pol::Module::FileAccessExecutorModule::mf_OpenXMLFile(), Pol::Module::FileAccessExecutorModule::mf_ReadFile(), Pol::Module::FileAccessExecutorModule::mf_WriteFile(), Pol::Core::process_package_cmds_cfg(), Pol::Core::ScriptDef::quickconfig(), Pol::Bscript::Compiler::read_function_declarations_in_included_file(), Pol::Items::read_itemdesc_file(), and Pol::Core::register_spell().
size_t Pol::Plib::Package::estimateSize | ( | ) | const |
Definition at line 258 of file pkg.cpp.
References conflicts_, core_versionstring_required_, dir_, name_, replaces_, requires_, Pol::Plib::PackageList::sizeEstimate(), and version_.
|
inline |
Definition at line 83 of file pkg.h.
Referenced by Pol::Module::DataStoreFile::DataStoreFile(), desc(), Pol::Module::DataStoreFile::filename(), Pol::Core::FindNpcTemplate(), Pol::Module::DataFileExecutorModule::GetDataStoreFile(), Pol::Module::GetPackageList(), Pol::Plib::load_package(), Pol::Module::DataFileExecutorModule::mf_CreateDataFile(), Pol::Module::PolSystemExecutorModule::mf_ListTextCommands(), Pol::Module::DataFileExecutorModule::mf_OpenDataFile(), Pol::Core::NpcTemplate::NpcTemplate(), Pol::Items::ItemDesc::objtype_description(), Pol::Core::read_npc_templates(), Pol::Core::register_spell(), Pol::Core::ScriptDef::relativename(), and Pol::Items::write_objtypes_txt().
bool Pol::Plib::Package::provides_system_home_page | ( | ) | const |
Definition at line 27 of file pkg.cpp.
References provides_system_home_page_.
Referenced by Pol::Core::config_web_server().
|
inline |
Definition at line 87 of file pkg.h.
References Pol::Plib::check_package_deps(), Pol::Plib::find_package(), Pol::Plib::GetPackageCfgPath(), Pol::Plib::load_all_cfgs(), Pol::Plib::load_packaged_cfgs(), Pol::Plib::load_packages(), Pol::Plib::pkgdef_split(), Pol::ECompile::quiet, and Pol::Plib::replace_packages().
Referenced by Pol::Plib::load_package().
|
private |
Definition at line 68 of file pkg.h.
Referenced by check_conflicts(), and estimateSize().
|
private |
Definition at line 64 of file pkg.h.
Referenced by check_dependencies(), and Package().
|
private |
Definition at line 65 of file pkg.h.
Referenced by check_dependencies(), estimateSize(), and Package().
|
private |
Definition at line 59 of file pkg.h.
Referenced by check_dependencies(), and estimateSize().
|
private |
Definition at line 60 of file pkg.h.
Referenced by check_dependencies(), estimateSize(), and Package().
|
private |
Definition at line 71 of file pkg.h.
Referenced by provides_system_home_page().
|
private |
Definition at line 69 of file pkg.h.
Referenced by check_replacements(), and estimateSize().
|
private |
Definition at line 67 of file pkg.h.
Referenced by check_dependencies(), and estimateSize().
|
private |
Definition at line 61 of file pkg.h.
Referenced by check_dependencies(), and estimateSize().