| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 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 |