wavelength 1.0.0
Loading...
Searching...
No Matches
scripttrackdata.h
Go to the documentation of this file.
1#pragma once
2
3#include <vector>
4
5#include "mid/tickobj.h"
6#include "os/string.h"
7#include "script/dataarray.h"
8
15public:
23 explicit ScriptTrackData(const char *pszName);
24
32
41 void AddCommand(int nTick, DataArray *pCommand);
42
50 int NumCommands() const;
51
61
63 const String &GetName() const {
64 return mName;
65 }
66
67private:
68 String mName;
69 std::vector<TickObj<DataArray *> > mCommands;
70};
Reference-counted array of script data nodes.
Definition dataarray.h:20
ScriptTrackData(const char *pszName)
Construct data with no command.
void AddCommand(int nTick, DataArray *pCommand)
Add a command after every command at or before its tick.
const String & GetName() const
Definition scripttrackdata.h:63
~ScriptTrackData()
Release every command.
int NumCommands() const
Report the number of commands.
TickObj< DataArray * > * GetCommand(int nIndex)
Report a command and its tick.
Growable text buffer that is also a PrnStream.
Definition string.h:19
One value at one song position.
Definition tickobj.h:18