19 #ifndef GNASH_SWF_EXPORTASSETSTAG_H
20 #define GNASH_SWF_EXPORTASSETSTAG_H
56 for (Exports::const_iterator it = _exports.begin(),
e = _exports.end();
76 const boost::uint16_t count = in.
read_u16();
79 log_parse(
_(
" export: count = %d"), count);
83 for (
size_t i = 0;
i < count; ++
i) {
85 const boost::uint16_t
id = in.
read_u16();
89 std::string symbolName;
93 log_parse(
_(
" export: id = %d, name = %s"),
id, symbolName);
100 _exports.push_back(symbolName);
Client program's interface to the definition of a movie or sprite.
Definition: movie_definition.h:95
A MovieClip is a container for DisplayObjects.
Definition: MovieClip.h:83
static void loader(SWFStream &in, TagType tag, movie_definition &m, const RunResources &)
Definition: ExportAssetsTag.h:43
void read_string(std::string &to)
Reads a null-terminated string from the given file and assigns it to the given std::string, overriding any previous value of it.
Definition: SWFStream.cpp:403
TagType
SWF tag types. Symbolic names copied from Ming.
Definition: SWF.h:30
virtual const movie_definition * definition() const =0
A top-level, standalone Movie that can be loaded and played.
Definition: Movie.h:46
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition: dbus_ext.cpp:40
virtual boost::uint16_t exportID(const std::string &) const
Get the id that corresponds to a symbol.
Definition: movie_definition.h:396
boost::uint16_t read_u16()
Read a aligned unsigned 16-bit value from the stream.
Definition: SWFStream.cpp:340
#define IF_VERBOSE_PARSE(x)
Definition: log.h:364
Control tags are swf tags that control the operation of the movie.
Definition: ControlTag.h:43
Definition: ExportAssetsTag.h:36
virtual void addCharacter(boost::uint16_t)
Add a character to the list of known characters.
Definition: Movie.h:97
virtual Movie * get_root() const
Return the relative root of this DisplayObject.
Definition: MovieClip.cpp:2054
Definition: GnashKey.h:166
#define _(String)
Definition: log.h:44
std::vector< std::string > Exports
Definition: ExportAssetsTag.h:40
Class to group together per-run and external resources for Gnash.
Definition: RunResources.h:43
Definition: GnashKey.h:155
Definition: GnashKey.h:151
Definition: GnashKey.h:159
virtual void executeState(MovieClip *m, DisplayList &) const
Execute "state" or "DisplayList" tags.
Definition: ExportAssetsTag.h:54
virtual void addControlTag(boost::intrusive_ptr< SWF::ControlTag >)
Add an ControlTag to this movie_definition's playlist.
Definition: movie_definition.h:273
A list of on-stage DisplayObjects, ordered by depth.
Definition: DisplayList.h:64
Definition: GnashKey.h:331
SWF stream wrapper class.
Definition: SWFStream.h:58
virtual void registerExport(const std::string &, boost::uint16_t)
Register a symbol to refer to a character id.
Definition: movie_definition.h:390
void ensureBytes(unsigned long needed)
Ensure the requested number of bytes are available for an aligned read in the currently opened tag...
Definition: SWFStream.cpp:51