Go to the documentation of this file.
19 #ifndef GNASH_SWF_EXPORTASSETSTAG_H
20 #define GNASH_SWF_EXPORTASSETSTAG_H
55 Movie* mov =
m->get_root();
56 for (
const std::string& the_export : _exports) {
75 const std::uint16_t count = in.
read_u16();
82 for (
size_t i = 0;
i < count; ++
i) {
84 const std::uint16_t
id = in.
read_u16();
88 std::string symbolName;
92 log_parse(
_(
" export: id = %d, name = %s"),
id, symbolName);
96 m.registerExport(symbolName,
id);
99 _exports.push_back(symbolName);
Control tags are swf tags that control the operation of the movie.
Definition: ControlTag.h:44
TagType
SWF tag types. Symbolic names copied from Ming.
Definition: SWF.h:31
Definition: ExportAssetsTag.h:37
@ i
Definition: GnashKey.h:155
#define _(String)
Definition: log.h:44
void read_string(std::string &to)
Reads a null-terminated string from the given file and assigns it to the given std::string,...
Definition: SWFStream.cpp:395
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition: dbus_ext.cpp:41
@ m
Definition: GnashKey.h:159
virtual void executeState(MovieClip *m, DisplayList &) const
Execute "state" or "DisplayList" tags.
Definition: ExportAssetsTag.h:54
A MovieClip is a container for DisplayObjects.
Definition: MovieClip.h:84
virtual void addCharacter(std::uint16_t)
Add a character to the list of known characters.
Definition: Movie.h:97
Client program's interface to the definition of a movie or sprite.
Definition: movie_definition.h:96
static void loader(SWFStream &in, TagType tag, movie_definition &m, const RunResources &)
Definition: ExportAssetsTag.h:43
A list of on-stage DisplayObjects, ordered by depth.
Definition: DisplayList.h:65
@ t
Definition: GnashKey.h:166
@ EXPORTASSETS
Definition: SWF.h:86
virtual const movie_definition * definition() const =0
Class to group together per-run and external resources for Gnash.
Definition: RunResources.h:54
A top-level, standalone Movie that can be loaded and played.
Definition: Movie.h:47
#define IF_VERBOSE_PARSE(x)
Definition: log.h:378
void log_parse(StringType msg, Args... args)
Definition: log.h:313
std::uint16_t read_u16()
Read a aligned unsigned 16-bit value from the stream.
Definition: SWFStream.cpp:332
virtual std::uint16_t exportID(const std::string &) const
Get the id that corresponds to a symbol.
Definition: movie_definition.h:396
std::vector< std::string > Exports
Definition: ExportAssetsTag.h:40
SWF stream wrapper class.
Definition: SWFStream.h:59
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:50
@ SWF
Definition: GnashKey.h:331