Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
#include <iostream>
#include <fstream>
#include <assert.h>
#include <stdlib.h>
#include "const.h"
#include "xml_support.h"
#include "hashtable.h"
#include "accountsxml.h"
#include "vsfilesystem.h"
#include <expat.h>
Go to the source code of this file.
Namespaces | |
accountXML | |
Constant Groups | |
accountXML | |
Functions | |
void | accountXML::beginElement (void *userData, const XML_Char *name, const XML_Char **atts) |
void | accountXML::endElement (void *userData, const XML_Char *name) |
vector< Account * > | getAllAccounts () |
Account * | getAcctSerial (ObjSerial ser) |
Account * | getAcctAddress (SOCKETALT ser) |
void | LoadAccounts (const char *filename) |
void | addAcct (string key, Account *acct) |
Account * | getAcctNoReload (const string &key) |
Account * | getAcctTemplate (const string &key) |
Variables | |
const EnumMap::Pair | accountXML::element_names [] |
const EnumMap::Pair | accountXML::attribute_names [] |
const EnumMap | accountXML::element_map (element_names, 4) |
const EnumMap | accountXML::attribute_map (attribute_names, 5) |
string | accountXML::curname |
string | accountXML::file |
Account | accountXML::tmpacct |
int | accountXML::level = -1 |
vsUMap< string, Account * > | accountXML::accounttable |
int | accountXML::nbaccounts = 0 |
void addAcct | ( | string | key, |
Account * | acct | ||
) |
Definition at line 256 of file accountsxml.cpp.
References accountXML::accounttable, and strtoupper().
Referenced by AccountServer::recvMsg().
Definition at line 230 of file accountsxml.cpp.
References accountXML::accounttable.
Referenced by AccountServer::removeDeadSockets().
Account* getAcctNoReload | ( | const string & | key) |
Definition at line 261 of file accountsxml.cpp.
References accountXML::accounttable, and strtoupper().
Referenced by AccountServer::recvMsg().
Definition at line 219 of file accountsxml.cpp.
References accountXML::accounttable.
Referenced by AccountServer::writeSave().
Account* getAcctTemplate | ( | const string & | key) |
Definition at line 266 of file accountsxml.cpp.
References accountXML::accounttable, accountXML::file, LoadAccounts(), and strtoupper().
Referenced by AccountServer::recvMsg().
vector< Account* > getAllAccounts | ( | ) |
void LoadAccounts | ( | const char * | filename) |
Definition at line 241 of file accountsxml.cpp.
References VSFileSystem::AccountFile, BeamXML::beginElement(), VSFileSystem::VSFile::Close(), BeamXML::endElement(), f, accountXML::file, VSFileSystem::Ok, VSFileSystem::VSFile::OpenReadOnly(), VSFileSystem::VSFile::ReadFull(), and VSFileSystem::VSFile::Size().
Referenced by getAcctTemplate(), and AccountServer::start().