BEAST/BSE - Better Audio System and Sound Engine  0.8.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
bsewavetool.hh
Go to the documentation of this file.
00001  // Licensed GNU LGPL v2.1 or later: http://www.gnu.org/licenses/lgpl.html
00002 #include <bse/gsldatahandle.hh>
00003 #include <bse/gslwavechunk.hh>
00004 #include "bseloopfuncs.hh"
00005 #include "bwtwave.hh"
00006 #include <unistd.h>
00007 #include <typeinfo>
00008 #include <string>
00009 
00010 namespace BseWaveTool {
00011 using namespace std;
00012 
00013 /* --- command + registry --- */
00014 class Command {
00015 public:
00016   const string name;
00017   explicit      Command    (const char *command_name);
00018   virtual uint  parse_args (uint   argc,
00019                             char **argv)        { return 0; }
00020   virtual Wave* create     ()                   { return NULL; }
00021   virtual bool  exec       (Wave *wave) = 0;
00022   virtual void  blurb      (bool bshort);
00023   virtual      ~Command    ()                   {}
00024   static list<Command*> registry;
00025 };
00026 
00027 } // BseWaveTool
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines