libIntegra
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
command_source.h
Go to the documentation of this file.
1 /* libIntegra modular audio framework
2  *
3  * Copyright (C) 2007 Birmingham City University
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
18  * USA.
19  */
20 
25 #ifndef INTEGRA_COMMAND_SOURCE
26 #define INTEGRA_COMMAND_SOURCE
27 
28 #include "common_typedefs.h"
29 
30 namespace integra_api
31 {
39  class INTEGRA_API CCommandSource
40  {
41  public:
42 
44  enum source
45  {
46  NONE = -1,
47 
50 
52  LOAD,
53 
56 
59 
62 
65 
67  PUBLIC_API
68  };
69 
71 
74  CCommandSource( source command_source );
75 
78  operator source() const;
79 
83  string get_text() const;
84 
85  private:
86 
87  source m_command_source;
88  };
89 }
90 
91 
92 
93 #endif /*INTEGRA_COMMAND_SOURCE*/
Definition: command_source.h:52
Definition: command_source.h:58
source
Definition: command_source.h:44
Definition: command_source.h:49
Definition: command_source.h:61
Represents an enumeration of command sources.
Definition: command_source.h:39
Definition: command_source.h:55
#defines and typedefs used throughout the application