VST 3 SDK  VST 3.6.14
SDK for developing VST Plug-in
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Groups Pages
ProgramList Class Reference

ProgramList element. More...

#include <vsteditcontroller.h>

+ Inheritance diagram for ProgramList:

Public Types

using StringVector = (ProgramList, FObject) protected std::vector< String >
using ProgramInfoVector = std::vector< StringMap >

Public Member Functions

 ProgramList (const String128 name, ProgramListID listId, UnitID unitId)
 ProgramList (const ProgramList &programList)
const ProgramListInfogetInfo () const
ProgramListID getID () const
const TChargetName () const
int32 getCount () const
virtual tresult getProgramName (int32 programIndex, String128 name)
virtual tresult setProgramName (int32 programIndex, const String128 name)
virtual tresult getProgramInfo (int32 programIndex, CString attributeId, String128 value)
virtual tresult hasPitchNames (int32 programIndex)
virtual tresult getPitchName (int32 programIndex, int16 midiPitch, String128 name)
virtual int32 addProgram (const String128 name)
 Adds a program to the end of the list. More...
virtual bool setProgramInfo (int32 programIndex, CString attributeId, const String128 value)
 Sets a program attribute value. More...
virtual ParametergetParameter ()
 Creates and returns the program parameter. More...

Public Attributes

ProgramListInfo info
UnitID unitId
StringVector programNames
ProgramInfoVector programInfos

Detailed Description

ProgramList element.

Member Typedef Documentation

using StringVector = (ProgramList, FObject) protected std::vector<String>
using ProgramInfoVector = std::vector<StringMap>

Constructor & Destructor Documentation

ProgramList ( const String128  name,
ProgramListID  listId,
UnitID  unitId 
ProgramList ( const ProgramList programList)

Member Function Documentation

const ProgramListInfo& getInfo ( ) const
ProgramListID getID ( ) const
const TChar* getName ( ) const
int32 getCount ( ) const
tresult getProgramName ( int32  programIndex,
String128  name 
tresult setProgramName ( int32  programIndex,
const String128  name 
tresult getProgramInfo ( int32  programIndex,
CString  attributeId,
String128  value 
virtual tresult hasPitchNames ( int32  programIndex)

Reimplemented in ProgramListWithPitchNames.

virtual tresult getPitchName ( int32  programIndex,
int16  midiPitch,
String128  name 

Reimplemented in ProgramListWithPitchNames.

int32 addProgram ( const String128  name)

Adds a program to the end of the list.

returns the index of the program.

Reimplemented in ProgramListWithPitchNames.

bool setProgramInfo ( int32  programIndex,
CString  attributeId,
const String128  value 

Sets a program attribute value.

Parameter * getParameter ( )

Creates and returns the program parameter.

Member Data Documentation

UnitID unitId
StringVector programNames
ProgramInfoVector programInfos
Parameter* parameter

Copyright ©2019 Steinberg Media Technologies GmbH. All Rights Reserved. This documentation is under this license.