wxPackageCommandArray Class Reference

#include <packagecmd.h>

Inheritance diagram for wxPackageCommandArray:

wxPackageCommandSet List of all members.

Public Member Functions

 wxPackageCommandArray (wxPackageBuildSystemStage s=wxPBSS_BUILD)
 Default constructor does nothing.
bool IsOk () const
void AddKeywords (const wxArrayString &names, const wxArrayString &values)
 Adds given keywords to all commands of this array.
void AddKeywords (const wxStringHashMap &hash)
wxArrayString & GetTargets ()
 Returns the targets supported by this array of commands.
wxArrayString GetTargets () const
wxString GetTargetsStr () const
wxPackageBuildSystemStage GetStage () const
wxPackageCommand GetSubstitutedCmd (size_t n) const
 Does the substitution and others in the n-th command and returns it.
wxPackageCommandArray GetValidCommandsFor (const wxPackage &) const
wxString GetSelectedTarget () const
void SetTargets (const wxString &str)
void SetTargets (const wxArrayString &str)
void SetSelectedTarget (size_t n)
void CopyTargets (const wxPackageCommandArray &arr)

Protected Attributes

wxArrayString m_arrTargets
 The possible targets which can be invoked for this stage.
size_t m_nSelectedTarget
 The currently selected target for this array of commands.
wxPackageBuildSystemStage m_stage
 The stage of the commands of this array.

Detailed Description

A list of commands, e.g. for building, installing, ... and the associated options.

Definition at line 135 of file packagecmd.h.


Member Function Documentation

wxPackageCommandArray wxPackageCommandArray::GetValidCommandsFor ( const wxPackage  )  const

Returns an array containing only the commands whose condition->IsValid() function returns true for the given package.

Definition at line 130 of file packagecmd.cpp.

References CopyTargets().

Referenced by wxExtCmdProgressPanel::UpdateCachedCommands(), and wxExtCmdOptionsPanel::UpdateCommands().

wxString wxPackageCommandArray::GetSelectedTarget (  )  const [inline]

Returns the currently selected target which can be used for substitution of the keyword.

Definition at line 188 of file packagecmd.h.

References m_arrTargets, and m_nSelectedTarget.

Referenced by GetSubstitutedCmd().


The documentation for this class was generated from the following files:
Generated on Thu Feb 1 22:14:32 2007 for wxWidgets Package Manager by  doxygen 1.5.1-p1