#include <libsswf.h>

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 Action * | Duplicate (void) const |
| Create a duplicate of the label. | |
Private Attributes | |
| char * | f_label |
| ActionLabel::ActionLabel | ( | TagBase * | tag | ) |
An action label is set to "no name" by default. You are expected to call SetLabel() once initialized.
| [in] | tag | The tag including this action |
References f_label.
Referenced by Duplicate().
| Action * ActionLabel::Duplicate | ( | void | ) | const [private, virtual] |
This function creates a new label action and copies the label of 'this' action.
Reimplemented from sswf::Action.
References ActionLabel(), f_label, SetLabel(), and sswf::Action::Tag().
| 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.
References f_label.
Referenced by sswf::Action::FindLabel(), and sswf::ActionBranch::Parse2ndPass().
| 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.
| [in] | label | The new label name |
References f_label, sswf::MemoryManager::MemFree(), and sswf::MemoryManager::StrDup().
Referenced by Duplicate(), and sswf::Action::FindLabelAtOffset().
char* sswf::ActionLabel::f_label [private] |
Referenced by ActionLabel(), Duplicate(), GetLabel(), and SetLabel().
1.5.5