The Fib multimedia system
Fib is a system for storing multimedia data (like images or films).
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
cResourceCheck.h
Go to the documentation of this file.
1
/**
2
* @file cResourceCheck
3
* file name: cResourceCheck.h
4
* @author Betti Oesterholz
5
* @date 19.03.2010
6
* @mail webmaster@BioKom.info
7
*
8
* System: C++
9
*
10
* This header specifies the basisclass for checking if enougth resources
11
* are exists to run more operations.
12
* Copyright (C) @c GPL3 2010 Betti Oesterholz
13
*
14
* This program is free software: you can redistribute it and/or modify
15
* it under the terms of the GNU General Public License (GPL) as
16
* published by the Free Software Foundation, either version 3 of the
17
* License, or any later version.
18
*
19
* This program is distributed in the hope that it will be useful,
20
* but WITHOUT ANY WARRANTY; without even the implied warranty of
21
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22
* GNU Lesser General Public License for more details.
23
*
24
* You should have received a copy of the GNU General Public License
25
* along with this program. If not, see <http://www.gnu.org/licenses/>.
26
*
27
*
28
* This header specifies the basisclass for checking if enougth resources
29
* are exists to run more operations.
30
* The test of this class (but not necessarily it's children) is true if:
31
* - ther are betwean 2 and 32 operations running
32
*
33
* @see cEnviroment
34
*/
35
/*
36
History:
37
19.03.2010 Oesterholz created
38
06.06.2010 Oesterholz method getClassName() added
39
*/
40
41
42
#ifndef ___C_RESOURCE_CHECK_H__
43
#define ___C_RESOURCE_CHECK_H__
44
45
#include "version.h"
46
47
#include <string>
48
49
50
namespace
enviroment{
51
52
53
class
cResourceCheck
{
54
protected
:
55
56
/**
57
* The maximal number of operations which should run in the enviroment.
58
*/
59
unsigned
int
uiMaxOperationsToRun
;
60
61
public
:
62
63
/**
64
* constructor
65
*
66
* @param uiInMaxOperationsToRun the maximal number of operations which
67
* should run in the enviroment
68
*/
69
cResourceCheck
(
unsigned
int
uiInMaxOperationsToRun = 8 );
70
71
/**
72
* Destructor of the class cResourceCheck.
73
*/
74
virtual
~cResourceCheck
();
75
76
/**
77
* @return true if enougth resources exists to start more operations
78
* (ther are under 32 operations running), else false
79
*/
80
virtual
bool
enoughResources
()
const
;
81
82
/**
83
* This method clones this object.
84
*
85
* @return a clone of this object
86
*/
87
virtual
cResourceCheck
*
clone
()
const
;
88
89
/**
90
* @return the name of this class
91
*/
92
virtual
std::string
getClassName
()
const
;
93
94
};
//end class cResourceCheck
95
96
97
};
//end namespace enviroment
98
99
#endif //___C_RESOURCE_CHECK_H__
100
101
102
103
104
105
106
enviroment
incl
cResourceCheck.h
Generated on Thu Feb 14 2013 14:06:55 for The Fib multimedia system by
1.8.1