Crossfire Server, Trunk  R20993
ScriptFileManager Class Reference

#include <ScriptFileManager.h>

+ Collaboration diagram for ScriptFileManager:

Public Member Functions

ScriptFilegetFile (const QString &path)
 
void removeMap (CREMapInformation *map)
 
 ScriptFileManager ()
 
QList< ScriptFile * > scripts () const
 
QList< ScriptFile * > scriptsForMap (CREMapInformation *map)
 
virtual ~ScriptFileManager ()
 

Private Attributes

QHash< QString, ScriptFile * > myScripts
 

Detailed Description

Manage scripts for items.

Definition at line 10 of file ScriptFileManager.h.

Constructor & Destructor Documentation

◆ ScriptFileManager()

ScriptFileManager::ScriptFileManager ( )

Definition at line 4 of file ScriptFileManager.cpp.

◆ ~ScriptFileManager()

ScriptFileManager::~ScriptFileManager ( )
virtual

Definition at line 8 of file ScriptFileManager.cpp.

References myScripts.

Member Function Documentation

◆ getFile()

ScriptFile * ScriptFileManager::getFile ( const QString &  path)

Get information about a script path.

Parameters
pathfull script path.
Returns
information about the script, never NULL.

Definition at line 26 of file ScriptFileManager.cpp.

References myScripts.

Referenced by CREMapInformationManager::checkEvent(), CREMapInformationManager::loadCache(), and CREMapInformationManager::process().

+ Here is the caller graph for this function:

◆ removeMap()

void ScriptFileManager::removeMap ( CREMapInformation map)

Remove scripts linked to a map.

Parameters
mapmap to remove scripts of.

Definition at line 35 of file ScriptFileManager.cpp.

References myScripts.

Referenced by CREMapInformationManager::process().

+ Here is the caller graph for this function:

◆ scripts()

QList< ScriptFile * > ScriptFileManager::scripts ( ) const

Definition at line 53 of file ScriptFileManager.cpp.

References myScripts.

Referenced by CREResourcesWindow::fillScripts().

+ Here is the caller graph for this function:

◆ scriptsForMap()

QList< ScriptFile * > ScriptFileManager::scriptsForMap ( CREMapInformation map)

Definition at line 13 of file ScriptFileManager.cpp.

References ScriptFile::forMap(), and myScripts.

Referenced by CREMapPanel::setItem(), and CREMapInformationManager::storeCache().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Field Documentation

◆ myScripts

QHash<QString, ScriptFile*> ScriptFileManager::myScripts
private

Definition at line 34 of file ScriptFileManager.h.

Referenced by getFile(), removeMap(), scripts(), scriptsForMap(), and ~ScriptFileManager().


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