Debian Codegraph @

include/engine/component.h

raw symbols SCIP
1 /* fre:ac - free audio converter
2 * Copyright (C) 2001-2020 Robert Kausch <[email protected]>
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License as
6 * published by the Free Software Foundation, either version 2 of
7 * the License, or (at your option) any later version.
8 *
9 * THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
10 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
11 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. */
12
13 #ifndef H_FREAC_COMPONENT
14 #define H_FREAC_COMPONENT
15
16 #include <smooth.h>
17 #include <boca.h>
18
19 using namespace smooth;
20
21 namespace freac
22 {
23 class Component
24 {
25 private:
26 static Array<Threads::Mutex *, Void *> mutexes;
27 static Threads::Mutex managementMutex;
28
29 Bool errorState;
30 String errorString;
31 protected:
32 const BoCA::Config *configuration;
33
34 Void SetErrorInfo(Bool, const String &, const String & = NIL, const String & = NIL, const String & = NIL);
35 public:
36 static Void FreeLockObjects();
37
38 Component(const BoCA::Config *);
39 virtual ~Component();
40
41 static Bool LockComponent(BoCA::AS::StreamComponent *);
42 static Bool UnlockComponent(BoCA::AS::StreamComponent *);
43 accessors:
44 Bool GetErrorState() const { return errorState; }
45 const String &GetErrorString() const { return errorString; }
46 };
47 };
48
49 #endif