Gnash  0.8.10
Public Types | Public Member Functions
gnash::SWF::TagLoadersTable Class Reference

Table of SWF tags loaders. More...

#include <TagLoadersTable.h>

List of all members.

Public Types

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

Public Member Functions

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

Detailed Description

Table of SWF tags loaders.


Member Typedef Documentation

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

gnash::SWF::TagLoadersTable::TagLoadersTable ( ) [inline]

Construct an empty TagLoadersTable.

gnash::SWF::TagLoadersTable::TagLoadersTable ( const Loaders loaders) [inline]

Construct a TagLoadersTable by copying another table.

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

Member Function Documentation

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.

Referenced by gnash::SWFParser::read().

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

References assert.


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