LAttachable is a PowerPlant class that is used for storing Attachment information in lists.
Methods :
The methods in this class are:
Data Members:
The data members in this class are:
Operation:
Typically, you don't need to override any methods in this class. As it exists, the class provides all the implementation that you are likely to need.
Source files:
See Also:
Purpose:
The copy constructor initializes the mAttachments data member, but does not make a copy of any other member data. The default constructor initializes the mAttachments data member, and also calls SetDefaultAttachable() with a pointer to this object.
Access:
Prototypes:
LAttachable();
LAttachable::LAttachable(Parameters:
const LAttachable& inOriginal );
Purpose:
The destructor destroys the LAttachable object, using a call to RemoveAllAttachments().
Access:
Prototype:
virtual ~LAttachable();
Purpose:
This method adds an Attachment to the list.
Access:
Prototype:
virtual void AddAttachment(Parameters:
LAttachment *inAttachment,
LAttachment *inBefore,
Boolean inOwnsAttachment)
This method has the following parameters:
Return:
Purpose:
This method tells all associated Attachments to execute themselves for the specified message.
Access:
Prototype:
Boolean ExecuteAttachments( MessageT inMessage,Parameters:
void *ioParam );
This method has the following parameters:
Return:
The Boolean return value specifies whether the default Host action
should be executed. The value is false if any Attachment's Execute() function returns false, otherwise it's true.
Purpose:
This method returns a pointer to the sDefaultAttachable data member.
Access:
Prototype:
static LAttachable* GetDefaultAttachable()Parameters:
Return:
A pointer to sDefaultAttachable.
Purpose:
This method removes all Attachments from an Attachable. All Attachments owned by this Attachable are deleted.
Access:
Prototype:
void RemoveAllAttachments();Parameters:
Return:
Purpose:
This method removes an Attachment from an Attachable. If this
Attachable is the owner of the Attachment, the Attachment's owner
is set to nil, and the caller should assume control of the Attachment.
Access:
Prototype:
void RemoveAttachment( LAttachment *inAttachment );Parameters:
This method has the following parameter:
Return:
Purpose:
This method sets the pointer for the sDefaultAttachable data member.
Access:
Prototype:
static void SetDefaultAttachable(Parameters:
LAttachment* inAttachment );
This method has the following parameter:
Return:
Purpose:
This data member contains the pointer to the default Attachable object.
Access:
Prototype:
static LAttachable* sDefaultAttachable;
Purpose:
This data member is a list of all the Attachments.
Access:
Prototype:
TArray<LAttachment*> *mAttachments;