sswf::ActionLabel Class Reference

Create a label in an action script. More...

#include <libsswf.h>

Inheritance diagram for sswf::ActionLabel:

sswf::Action sswf::MemoryManager sswf::ItemBase sswf::MemBuffer List of all members.

Public Member Functions

 ActionLabel (TagBase *tag)
 Initialize an ActionLabel.
const char * GetLabel (void) const
 Get the name of this label.
void SetLabel (const char *label)
 Set the name of an ActionLabel.

Private Member Functions

virtual ActionDuplicate (void) const
 Create a duplicate of the label.

Private Attributes

char * f_label

Detailed Description

An ActionLabel is an SSWF addition which is not saved in the SWF movie. It is used to indicate where a BranchAction can branch.


Constructor & Destructor Documentation

ActionLabel::ActionLabel ( TagBase tag  ) 

An action label is set to "no name" by default. You are expected to call SetLabel() once initialized.

Parameters:
[in] tag The tag including this action


Member Function Documentation

Action * ActionLabel::Duplicate ( void   )  const [private, virtual]

This function creates a new label action and copies the label of 'this' action.

Returns:
The pointer to the new ActionLabel

Reimplemented from sswf::Action.

ActionLabel::GetLabel ( void   )  const [inline]

This function retrieves the name of this label. It is used to search all the labels in an array of actions.

Returns:
The name of this label

void ActionLabel::SetLabel ( const char *  label  ) 

This function defines the name of an ActionLabel. The name can be any valid string. It should not be empty.

Parameters:
[in] label The new label name


Member Data Documentation

char* sswf::ActionLabel::f_label [private]


The documentation for this class was generated from the following files:
Generated on Sun May 13 23:29:39 2007 for libsswf by  doxygen 1.4.7