libIntegra
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
server_lock.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_SERVER_LOCK_H
26 #define INTEGRA_SERVER_LOCK_H
27 
28 #include "common_typedefs.h"
29 
30 
31 namespace integra_api
32 {
33  class IServer;
34 
59  class INTEGRA_API CServerLock
60  {
61  public:
63  CServerLock( IServer *server );
64  ~CServerLock();
65 
67  IServer &operator*();
68 
70  IServer *operator->();
71 
72  private:
73 
74  IServer *m_server;
75  };
76 }
77 
78 
79 #endif
Locking mechanism for IServer.
Definition: server_lock.h:59
Provides methods to query libIntegra and process commands.
Definition: server.h:51
#defines and typedefs used throughout the application