-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPixel.h
More file actions
32 lines (27 loc) · 663 Bytes
/
Copy pathPixel.h
File metadata and controls
32 lines (27 loc) · 663 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef PIXEL_H
#define PIXEL_H
class Pixel
{
private:
unsigned int red, green, blue;
public:
Pixel();
Pixel(const Pixel&);
Pixel(unsigned int, unsigned int, unsigned int);
~Pixel();
const unsigned int& operator[](const char*) const;
unsigned int& operator[](const char*);
// Index Error Class
class InputOutOfBoundsException
{
private:
const char* errorMessage;
const char* offendingIndex;
public:
InputOutOfBoundsException(const char*, const char*);
const char* returnError() const;
const char* returnOffendingIndex() const;
};
};
#include "Pixel_cpp.h";
#endif