sswf::TagInfo Class Reference

An attempt in creating a TagInfo. More...

#include <libsswf.h>

Inheritance diagram for sswf::TagInfo:

sswf::TagBase sswf::MemoryManager List of all members.

Public Member Functions

virtual ErrorManager::error_code_t Save (Data &data)
 Save the info tag in the Data buffer.
void SetInfo (const char *info)
 Set the info string.
void SetVersion (long version)
 Set the version of the tool saving this SWF file.
 TagInfo (TagBase *parent)
 Initializes the TagInfo.
virtual swf_type_t TypeFlags (void) const
 The type of this tag.

Private Member Functions

virtual ErrorManager::error_code_t PreSave (void)
 This tag appeared in version 3 of SWF.

Private Attributes

char * f_info
long f_version

Detailed Description

This class is an attempt in generating a valid TagInfo (also called a GeneratorCommand tag).

At this time, this generates errors and the movie does not play correctly.


Constructor & Destructor Documentation

TagInfo::TagInfo ( TagBase parent  ) 

By default, the TagInfo has no info and no version defined.

Parameters:
[in] parent a TagHeader tag
See also:
void sswf::TagInfoSetInfo(const char *info)

void sswf::TagInfoSetVersion(long version)


Member Function Documentation

ErrorManager::error_code_t TagInfo::PreSave ( void   )  [private, virtual]

Tells the TagHeader that a version 3+ movie is required.

Returns:
ErrorManager::ERROR_CODE_NONE or some other error

Reimplemented from sswf::TagBase.

ErrorManager::error_code_t TagInfo::Save ( Data data  )  [virtual]

This function saves the info version and string in the Data output buffer.

Parameters:
[in,out] data The Data buffer where the result is saved
Returns:
Zero when no errors occurs and non-zero otherwise

Implements sswf::TagBase.

void TagInfo::SetInfo ( const char *  info  ) 

This function saves the string passed as a parameter and saves it as the information string.

Parameters:
[in] info The info string to save in the TagInfo
See also:
void TagInfo::SetVersion(long version)

void TagInfo::SetVersion ( long  version  ) 

This function saves the version information.

The version can be anything, there are no specific test on that one.

Parameters:
[in] version The version of the tool saving this SWF animation
See also:
void TagInfo::SetInfo(const char *info)

TagBase::swf_type_t TagInfo::TypeFlags ( void   )  const [virtual]

The TagInfo is a DEFINE type.

Returns:
SWF_TYPE_DEFINE
See also:
TagBase::swf_type_t sswf::TagBase::TypeFlags(void) const

Implements sswf::TagBase.


Member Data Documentation

char* sswf::TagInfo::f_info [private]

long sswf::TagInfo::f_version [private]


The documentation for this class was generated from the following files:
Generated on Sat Jun 9 09:52:53 2007 for libsswf by  doxygen 1.4.7