publish_campaign.hpp File Reference

#include <string>
#include <vector>

Include dependency graph for publish_campaign.hpp:

This graph shows which files directly or indirectly include this file:

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)


Function Documentation

void archive_campaign ( const std::string &  campaign_name,
class config cfg 
)

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  ) 

std::vector<config *> find_scripts ( const config cfg,
std::string  extension 
)

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