SourceMod::IExtension Class Reference

Encapsulates an IExtensionInterface and its dependencies. More...

#include <public/IExtensionSys.h>

List of all members.

Public Member Functions

virtual bool IsLoaded ()=0
 Returns whether or not the extension is properly loaded.
virtual IExtensionInterfaceGetAPI ()=0
 Returns the extension's API interface.
virtual const char * GetFilename ()=0
 Returns the filename of the extension, relative to the extension folder. If the extension is an "external" extension, the file path is specified by the extension itself, and may be arbitrary (not real).
virtual IdentityToken_t * GetIdentity ()=0
 Returns the extension's identity token.
virtual ITERATORFindFirstDependency (IExtension **pOwner, SMInterface **pInterface)=0
 Retrieves the extension dependency list for this extension.
virtual bool FindNextDependency (ITERATOR *iter, IExtension **pOwner, SMInterface **pInterface)=0
 Finds the next dependency in the dependency list.
virtual void FreeDependencyIterator (ITERATOR *iter)=0
 Frees an ITERATOR handle from FindFirstDependency.
virtual bool IsRunning (char *error, size_t maxlength)=0
 Queries the extension to see its run state.
virtual bool IsExternal ()=0
 Returns whether the extension is local (from the extensions folder), or is from an external source (such as Metamod:Source).


Detailed Description

Encapsulates an IExtensionInterface and its dependencies.

Definition at line 53 of file IExtensionSys.h.


Member Function Documentation

virtual IExtensionInterface* SourceMod::IExtension::GetAPI (  )  [pure virtual]

Returns the extension's API interface.

Returns:
An IExtensionInterface pointer.

virtual const char* SourceMod::IExtension::GetFilename (  )  [pure virtual]

Returns the filename of the extension, relative to the extension folder. If the extension is an "external" extension, the file path is specified by the extension itself, and may be arbitrary (not real).

Returns:
A string containing the extension file name.

virtual IdentityToken_t* SourceMod::IExtension::GetIdentity (  )  [pure virtual]

Returns the extension's identity token.

Returns:
An IdentityToken_t pointer.

virtual ITERATOR* SourceMod::IExtension::FindFirstDependency ( IExtension **  pOwner,
SMInterface **  pInterface 
) [pure virtual]

Retrieves the extension dependency list for this extension.

Parameters:
pOwner Optional pointer to store the first interface's owner.
pInterface Optional pointer to store the first interface.
Returns:
An ITERATOR pointer for the results, or NULL if no results at all.

virtual bool SourceMod::IExtension::FindNextDependency ( ITERATOR iter,
IExtension **  pOwner,
SMInterface **  pInterface 
) [pure virtual]

Finds the next dependency in the dependency list.

Parameters:
iter Pointer to iterator from FindFirstDependency.
pOwner Optional pointer to store the interface's owner.
pInterface Optional pointer to store the interface.
Returns:
True if there are more results after this, false otherwise.

virtual void SourceMod::IExtension::FreeDependencyIterator ( ITERATOR iter  )  [pure virtual]

Frees an ITERATOR handle from FindFirstDependency.

Parameters:
iter Pointer to iterator to free.

virtual bool SourceMod::IExtension::IsRunning ( char *  error,
size_t  maxlength 
) [pure virtual]

Queries the extension to see its run state.

Parameters:
error Error buffer (may be NULL).
maxlength Maximum length of buffer.
Returns:
True if extension is okay, false if not okay.

virtual bool SourceMod::IExtension::IsExternal (  )  [pure virtual]

Returns whether the extension is local (from the extensions folder), or is from an external source (such as Metamod:Source).

Returns:
True if from an external source, false if local to SourceMod.


The documentation for this class was generated from the following file:
Generated on Thu Aug 28 22:10:21 2008 for SourceMod SDK by  doxygen 1.5.1