Gnash  0.8.11dev
Public Types | Public Member Functions | List of all members
gnash::SWF::TagLoadersTable Class Reference

Table of SWF tags loaders. More...

#include <TagLoadersTable.h>

Inheritance diagram for gnash::SWF::TagLoadersTable:

Public Types

typedef void(* TagLoader) (SWFStream &input, TagType type, movie_definition &m, const RunResources &r)
 Signature of an SWF tag loader. More...
 
typedef std::map< SWF::TagType, TagLoaderLoaders
 

Public Member Functions

 TagLoadersTable ()
 Construct an empty TagLoadersTable. More...
 
 TagLoadersTable (Loaders loaders)
 Construct a TagLoadersTable by copying another table. More...
 
 ~TagLoadersTable ()
 
bool get (TagType t, TagLoader &lf) const
 Get the TagLoader for a specified TagType. More...
 
bool registerLoader (TagType t, TagLoader lf)
 Register a loader for the specified SWF::TagType. More...
 

Detailed Description

Table of SWF tags loaders.

Member Typedef Documentation

◆ Loaders

◆ TagLoader

typedef void(* gnash::SWF::TagLoadersTable::TagLoader) (SWFStream &input, TagType type, movie_definition &m, const RunResources &r)

Signature of an SWF tag loader.

'in' is the SWF input stream 't' is the tag type 'm' a pointer to the movie (or sprite) being read

Constructor & Destructor Documentation

◆ TagLoadersTable() [1/2]

gnash::SWF::TagLoadersTable::TagLoadersTable ( )
inline

Construct an empty TagLoadersTable.

◆ TagLoadersTable() [2/2]

gnash::SWF::TagLoadersTable::TagLoadersTable ( Loaders  loaders)
inline

Construct a TagLoadersTable by copying another table.

◆ ~TagLoadersTable()

gnash::SWF::TagLoadersTable::~TagLoadersTable ( )
inline

References registerLoader(), and gnash::key::t.

Member Function Documentation

◆ get()

bool gnash::SWF::TagLoadersTable::get ( SWF::TagType  t,
TagLoader lf 
) const

Get the TagLoader for a specified TagType.

Returns
false if no loader is associated with the tag.

◆ registerLoader()

bool gnash::SWF::TagLoadersTable::registerLoader ( SWF::TagType  t,
TagLoader  lf 
)

Register a loader for the specified SWF::TagType.

This is part of an API for allowing external applications to register custom tags, and is not used by Gnash itself.

Returns
false if a loader is already registered for the given tag

Referenced by ~TagLoadersTable().


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