19 #ifndef GNASH_SWF_EXPORTASSETSTAG_H 20 #define GNASH_SWF_EXPORTASSETSTAG_H 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);
99 _exports.push_back(symbolName);
virtual void registerExport(const std::string &, std::uint16_t)
Register a symbol to refer to a character id.
Definition: movie_definition.h:390
virtual void addCharacter(std::uint16_t)
Add a character to the list of known characters.
Definition: Movie.h:97
std::uint16_t read_u16()
Read a aligned unsigned 16-bit value from the stream.
Definition: SWFStream.cpp:332
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:395
TagType
SWF tag types. Symbolic names copied from Ming.
Definition: SWF.h:30
virtual Movie * get_root() const
Return the relative root of this DisplayObject.
Definition: MovieClip.cpp:2049
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
#define IF_VERBOSE_PARSE(x)
Definition: log.h:378
Control tags are swf tags that control the operation of the movie.
Definition: ControlTag.h:43
void log_parse(StringType msg, Args... args)
Definition: log.h:313
Definition: ExportAssetsTag.h:36
virtual std::uint16_t exportID(const std::string &) const
Get the id that corresponds to a symbol.
Definition: movie_definition.h:396
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:53
virtual void executeState(MovieClip *m, DisplayList &) const
Execute "state" or "DisplayList" tags.
Definition: ExportAssetsTag.h:54
Definition: GnashKey.h:155
Definition: GnashKey.h:159
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
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