Functions | Variables

addon/validation.cpp File Reference

#include "global.hpp"
#include "addon/validation.hpp"
#include "config.hpp"
#include "foreach.hpp"
Include dependency graph for validation.cpp:

Go to the source code of this file.

Functions

bool addon_name_legal (const std::string &name)
 Checks whether an add-on name is legal or not.
bool check_names_legal (const config &dir)
 Probes an add-on archive for illegal names.
ADDON_TYPE get_addon_type (const std::string &str)
std::string get_addon_type_string (ADDON_TYPE type)
bool needs_escaping (char c)
std::string encode_binary (const std::string &str)
std::string unencode_binary (const std::string &str)

Variables

const unsigned short default_campaignd_port = 15002
 Default port number for the addon server.

Function Documentation

bool addon_name_legal ( const std::string &  name  ) 

Checks whether an add-on name is legal or not.

Definition at line 32 of file validation.cpp.

Referenced by BOOST_AUTO_TEST_CASE(), and check_names_legal().

Here is the caller graph for this function:

bool check_names_legal ( const config dir  ) 

Probes an add-on archive for illegal names.

Definition at line 43 of file validation.cpp.

References addon_name_legal(), check_names_legal(), config::child_range(), and game_config::path.

Referenced by check_names_legal(), and addons_client::install_addon().

Here is the call graph for this function:

Here is the caller graph for this function:

std::string encode_binary ( const std::string &  str  ) 

Definition at line 93 of file validation.cpp.

References needs_escaping().

Referenced by archive_file().

Here is the call graph for this function:

Here is the caller graph for this function:

ADDON_TYPE get_addon_type ( const std::string &  str  ) 

Definition at line 55 of file validation.cpp.

References ADDON_TYPES_COUNT, and ADDON_UNKNOWN.

Referenced by addon_info::read().

Here is the caller graph for this function:

std::string get_addon_type_string ( ADDON_TYPE  type  ) 

Definition at line 71 of file validation.cpp.

References ADDON_TYPES_COUNT.

Referenced by addon_info::write(), and addon_info::write_minimal().

Here is the caller graph for this function:

bool needs_escaping ( char  c  ) 

Definition at line 81 of file validation.cpp.

Referenced by encode_binary().

Here is the caller graph for this function:

std::string unencode_binary ( const std::string &  str  ) 

Definition at line 111 of file validation.cpp.

Referenced by unarchive_file().

Here is the caller graph for this function:


Variable Documentation

const unsigned short default_campaignd_port = 15002

Default port number for the addon server.

Note:
This might not be the best place to declare the variable, but it's one of the few files shared by the server and the game.

Definition at line 22 of file validation.cpp.

Referenced by addons_client::addons_client().

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Fri May 25 2012 01:03:35 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs