BEAST/BSE - Better Audio System and Sound Engine  0.9.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
bsewavetool.hh
Go to the documentation of this file.
1  // Licensed GNU LGPL v2.1 or later: http://www.gnu.org/licenses/lgpl.html
2 #include <bse/gsldatahandle.hh>
3 #include <bse/gslwavechunk.hh>
4 #include "bseloopfuncs.hh"
5 #include "bwtwave.hh"
6 #include <unistd.h>
7 #include <typeinfo>
8 #include <string>
9 
10 namespace BseWaveTool {
11 using namespace std;
12 
13 /* --- command + registry --- */
14 class Command {
15 public:
16  const string name;
17  explicit Command (const char *command_name);
18  virtual uint parse_args (uint argc,
19  char **argv) { return 0; }
20  virtual Wave* create () { return NULL; }
21  virtual bool exec (Wave *wave) = 0;
22  virtual void blurb (bool bshort);
23  virtual ~Command () {}
24  static list<Command*> registry;
25 };
26 
27 } // BseWaveTool
Definition: bsehack.idl:1078