#include <string>
#include <vector>
Go to the source code of this file.
Functions | |
void | get_campaign_info (const std::string &campaign_name, class config &cfg) |
void | set_campaign_info (const std::string &campaign_name, const class config &cfg) |
std::vector< std::string > | available_campaigns () |
std::vector< std::string > | installed_campaigns () |
Return the names of all installed campaigns. | |
void | archive_campaign (const std::string &campaign_name, class config &cfg) |
void | unarchive_campaign (const class config &cfg) |
bool | campaign_name_legal (const std::string &name) |
bool | check_names_legal (const config &dir) |
std::vector< config * > | find_scripts (const config &cfg, std::string extension) |
void archive_campaign | ( | const std::string & | campaign_name, | |
class config & | cfg | |||
) |
Definition at line 250 of file publish_campaign.cpp.
References config::add_child(), archive_dir(), archive_file(), campaign_dir(), file_exists(), and read_ignore_patterns().
std::vector<std::string> available_campaigns | ( | ) |
Definition at line 59 of file publish_campaign.cpp.
References campaign_dir(), file_exists(), and get_files_in_dir().
bool campaign_name_legal | ( | const std::string & | name | ) |
Definition at line 295 of file publish_campaign.cpp.
References two_dots().
Referenced by check_names_legal().
bool check_names_legal | ( | const config & | dir | ) |
Definition at line 308 of file publish_campaign.cpp.
References campaign_name_legal(), check_names_legal(), and config::get_children().
Referenced by check_names_legal().
Definition at line 100 of file publish_campaign.cpp.
References find_scripts(), and config::get_children().
Referenced by check_python_scripts(), find_scripts(), and validate_all_python_scripts().
void get_campaign_info | ( | const std::string & | campaign_name, | |
class config & | cfg | |||
) |
Definition at line 37 of file publish_campaign.cpp.
References campaign_dir(), file_exists(), istream_file(), read(), and stream.
std::vector<std::string> installed_campaigns | ( | ) |
Return the names of all installed campaigns.
Definition at line 81 of file publish_campaign.cpp.
References campaign_dir(), file_exists(), and get_files_in_dir().
void set_campaign_info | ( | const std::string & | campaign_name, | |
const class config & | cfg | |||
) |
void unarchive_campaign | ( | const class config & | cfg | ) |
Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |