EvEmu  0.8.4
11 September 2021
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
APIActiveObjectManager Class Reference

??? More...

#include "APIActiveObjectManager.h"

Inheritance diagram for APIActiveObjectManager:
Collaboration diagram for APIActiveObjectManager:

Public Member Functions

 APIActiveObjectManager (const PyServiceMgr &services)
 
std::tr1::shared_ptr< std::string > ProcessCall (const APICommandCall *pAPICommandCall)
 
- Public Member Functions inherited from APIServiceManager
 APIServiceManager (const PyServiceMgr &services)
 
PyServiceMgrservices ()
 
std::tr1::shared_ptr< std::string > BuildErrorXMLResponse (std::string errorCode, std::string errorMessage)
 

Protected Member Functions

std::tr1::shared_ptr< std::string > _CharacterList (const APICommandCall *pAPICommandCall)
 
std::tr1::shared_ptr< std::string > _CharacterSummary (const APICommandCall *pAPICommandCall)
 
std::tr1::shared_ptr< std::string > _Character (const APICommandCall *pAPICommandCall)
 
std::tr1::shared_ptr< std::string > _SystemList (const APICommandCall *pAPICommandCall)
 
std::tr1::shared_ptr< std::string > _SystemSummary (const APICommandCall *pAPICommandCall)
 
std::tr1::shared_ptr< std::string > _SystemBubbleList (const APICommandCall *pAPICommandCall)
 
std::tr1::shared_ptr< std::string > _BubbleEntityList (const APICommandCall *pAPICommandCall)
 
std::tr1::shared_ptr< std::string > _ShipInfo (const APICommandCall *pAPICommandCall)
 
std::tr1::shared_ptr< std::string > _ShipFittingList (const APICommandCall *pAPICommandCall)
 
std::tr1::shared_ptr< std::string > _FittedModuleInfo (const APICommandCall *pAPICommandCall)
 
std::tr1::shared_ptr< std::string > _FittedModuleChargeInfo (const APICommandCall *pAPICommandCall)
 
std::tr1::shared_ptr< std::string > _ShipTargetList (const APICommandCall *pAPICommandCall)
 
std::tr1::shared_ptr< std::string > _EntitiesTargetingShipList (const APICommandCall *pAPICommandCall)
 
std::tr1::shared_ptr< std::string > _ShipTacticalInfo (const APICommandCall *pAPICommandCall)
 
- Protected Member Functions inherited from APIServiceManager
bool _AuthenticateUserNamePassword (std::string userName, std::string password)
 
bool _AuthenticateFullAPIQuery (std::string userID, std::string apiKey)
 
bool _AuthenticateLimitedAPIQuery (std::string userID, std::string apiKey)
 
void _BuildXMLHeader ()
 
void _CloseXMLHeader (uint32 cacheStyle)
 
void _BuildXMLRowSet (std::string name, std::string key, const std::vector< std::string > *columns)
 
void _CloseXMLRowSet ()
 
void _BuildXMLRow (const std::vector< std::string > *columns)
 
void _BuildXMLTag (std::string name)
 
void _BuildXMLTag (std::string name, const std::vector< std::pair< std::string, std::string > > *params)
 
void _BuildXMLTag (std::string name, const std::vector< std::pair< std::string, std::string > > *params, std::string value)
 
void _CloseXMLTag ()
 
void _BuildSingleXMLTag (std::string name, std::string param)
 
void _BuildErrorXMLTag (std::string code, std::string param)
 
std::tr1::shared_ptr< std::string > _GetXMLDocumentString ()
 

Additional Inherited Members

- Protected Attributes inherited from APIServiceManager
APIServiceDB m_db
 
PyServiceMgr m_services
 
TiXmlDocument _XmlDoc
 
TiXmlElement * _pXmlDocOuterTag
 
std::string _CurrentRowSetColumnString
 
std::stack< TiXmlElement * > * _pXmlElementStack
 

Detailed Description

???

??? ??? ???

Author
Aknor Jaden
Date
January 2014

Definition at line 43 of file APIActiveObjectManager.h.

Constructor & Destructor Documentation

APIActiveObjectManager::APIActiveObjectManager ( const PyServiceMgr services)

Definition at line 32 of file APIActiveObjectManager.cpp.

33 : APIServiceManager(services)
34 {
35 }
APIServiceManager(const PyServiceMgr &services)

Member Function Documentation

std::tr1::shared_ptr<std::string> APIActiveObjectManager::_BubbleEntityList ( const APICommandCall pAPICommandCall)
protected
std::tr1::shared_ptr<std::string> APIActiveObjectManager::_Character ( const APICommandCall pAPICommandCall)
protected
std::tr1::shared_ptr<std::string> APIActiveObjectManager::_CharacterList ( const APICommandCall pAPICommandCall)
protected
std::tr1::shared_ptr<std::string> APIActiveObjectManager::_CharacterSummary ( const APICommandCall pAPICommandCall)
protected
std::tr1::shared_ptr<std::string> APIActiveObjectManager::_EntitiesTargetingShipList ( const APICommandCall pAPICommandCall)
protected
std::tr1::shared_ptr<std::string> APIActiveObjectManager::_FittedModuleChargeInfo ( const APICommandCall pAPICommandCall)
protected
std::tr1::shared_ptr<std::string> APIActiveObjectManager::_FittedModuleInfo ( const APICommandCall pAPICommandCall)
protected
std::tr1::shared_ptr<std::string> APIActiveObjectManager::_ShipFittingList ( const APICommandCall pAPICommandCall)
protected
std::tr1::shared_ptr<std::string> APIActiveObjectManager::_ShipInfo ( const APICommandCall pAPICommandCall)
protected
std::tr1::shared_ptr<std::string> APIActiveObjectManager::_ShipTacticalInfo ( const APICommandCall pAPICommandCall)
protected
std::tr1::shared_ptr<std::string> APIActiveObjectManager::_ShipTargetList ( const APICommandCall pAPICommandCall)
protected
std::tr1::shared_ptr<std::string> APIActiveObjectManager::_SystemBubbleList ( const APICommandCall pAPICommandCall)
protected
std::tr1::shared_ptr<std::string> APIActiveObjectManager::_SystemList ( const APICommandCall pAPICommandCall)
protected
std::tr1::shared_ptr<std::string> APIActiveObjectManager::_SystemSummary ( const APICommandCall pAPICommandCall)
protected
std::tr1::shared_ptr< std::string > APIActiveObjectManager::ProcessCall ( const APICommandCall pAPICommandCall)
virtual

Reimplemented from APIServiceManager.

Definition at line 37 of file APIActiveObjectManager.cpp.

References APIServiceManager::BuildErrorXMLResponse(), and sLog.

38 {
39  sLog.Debug("APIActiveObjectManager::ProcessCall()", "EVEmu API - Active Object Service Manager");
40 
41  if( pAPICommandCall->find( "servicehandler" ) == pAPICommandCall->end() )
42  {
43  sLog.Error( "APIActiveObjectManager::ProcessCall()", "Cannot find 'servicehandler' specifier in pAPICommandCall packet" );
44  return std::tr1::shared_ptr<std::string>(new std::string(""));
45  }
46 /*
47  if( pAPICommandCall->find( "servicehandler" )->second == "CharacterList.xml.aspx" )
48  return _APIKeyRequest(pAPICommandCall);
49  else if( pAPICommandCall->find( "servicehandler" )->second == "CharacterSummary.xml.aspx" )
50  return _Characters(pAPICommandCall);
51  else if( pAPICommandCall->find( "servicehandler" )->second == "Character.xml.aspx" )
52  return _AccountStatus(pAPICommandCall);
53  else if( pAPICommandCall->find( "servicehandler" )->second == "Character.xml.aspx" )
54  return _AccountStatus(pAPICommandCall);
55  else if( pAPICommandCall->find( "servicehandler" )->second == "Character.xml.aspx" )
56  return _AccountStatus(pAPICommandCall);
57  else if( pAPICommandCall->find( "servicehandler" )->second == "Character.xml.aspx" )
58  return _AccountStatus(pAPICommandCall);
59  else if( pAPICommandCall->find( "servicehandler" )->second == "Character.xml.aspx" )
60  return _AccountStatus(pAPICommandCall);
61  else if( pAPICommandCall->find( "servicehandler" )->second == "Character.xml.aspx" )
62  return _AccountStatus(pAPICommandCall);
63  else if( pAPICommandCall->find( "servicehandler" )->second == "Character.xml.aspx" )
64  return _AccountStatus(pAPICommandCall);
65  else if( pAPICommandCall->find( "servicehandler" )->second == "Character.xml.aspx" )
66  return _AccountStatus(pAPICommandCall);
67  //else if( pAPICommandCall->find( "servicehandler" )->second == "TODO.xml.aspx" )
68  // return _TODO(pAPICommandCall);
69  else
70  {
71  sLog.Error("APIActiveObjectManager::ProcessCall()", "EVEmu API - Active Object Service Manager - ERROR: Cannot resolve '%s' as a valid service query for Admin Service Manager",
72  pAPICommandCall->find("servicehandler")->second.c_str() );
73  return std::tr1::shared_ptr<std::string>(new std::string(""));
74  }
75 */
76  return BuildErrorXMLResponse( "9999", "EVEmu API Server: Active Object Manager - Unknown call." );
77 }
std::tr1::shared_ptr< std::string > BuildErrorXMLResponse(std::string errorCode, std::string errorMessage)
#define sLog
Evaluates to a NewLog instance.
Definition: LogNew.h:250

Here is the call graph for this function:


The documentation for this class was generated from the following files: