My Project
TablicaBool.h
1 #ifndef __TablicaBool_h__
2 #define __TablicaBool_h__
3 
4 #include<exception>
5 
6 using namespace std;
7 
11 class MojException : public exception {
12  private:
14  string s;
15  public:
19  MojException(string ss);
22  virtual ~MojException() throw();
25  virtual const char* what() const throw();
26 };
27 
28 
34 class TablicaBool {
35  private:
37  bool* t;
39  long n;
40  public:
46  bool getValue( long i ) throw (MojException);
47 
53  void setValue( long i, bool b ) throw (MojException);
54 
59  TablicaBool( long n ) throw (MojException);
60 
62  ~TablicaBool();
63 };
64 
65 #endif
66 
Definition: TablicaBool.h:34
Definition: TablicaBool.h:11