| srs5694 | e7b4ff9 | 2009-08-18 13:16:10 -0400 | [diff] [blame^] | 1 | #include <stdint.h> |
| 2 | #include <unistd.h> |
| 3 | #include <stdlib.h> |
| 4 | #include <string> |
| 5 | #include "support.h" |
| 6 | |
| 7 | #ifndef __GPT_ATTRIBUTES |
| 8 | #define __GPT_ATTRIBUTES |
| 9 | |
| 10 | #define NUM_ATR 64 /* # of attributes -- 64, since it's a 64-bit field */ |
| 11 | #define ATR_NAME_SIZE 25 /* maximum size of attribute names */ |
| 12 | |
| 13 | using namespace std; |
| 14 | |
| 15 | class Attributes { |
| 16 | protected: |
| 17 | uint64_t attributes; |
| 18 | char atNames[NUM_ATR][ATR_NAME_SIZE]; |
| 19 | public: |
| 20 | Attributes(void); |
| 21 | ~Attributes(void); |
| 22 | void SetAttributes(uint64_t a) {attributes = a;} |
| 23 | uint64_t GetAttributes(void) {return attributes;} |
| 24 | void DisplayAttributes(void); |
| 25 | void ChangeAttributes(void); |
| 26 | }; // class Attributes |
| 27 | |
| 28 | #endif |