| srs5694 | 221e087 | 2009-08-29 15:00:31 -0400 | [diff] [blame^] | 1 | /* This program is copyright (c) 2009 by Roderick W. Smith. It is distributed |
| 2 | under the terms of the GNU GPL version 2, as detailed in the COPYING file. */ |
| 3 | |
| srs5694 | e7b4ff9 | 2009-08-18 13:16:10 -0400 | [diff] [blame] | 4 | #include <stdint.h> |
| 5 | #include <unistd.h> |
| 6 | #include <stdlib.h> |
| 7 | #include <string> |
| 8 | #include "support.h" |
| 9 | |
| 10 | #ifndef __GPT_ATTRIBUTES |
| 11 | #define __GPT_ATTRIBUTES |
| 12 | |
| 13 | #define NUM_ATR 64 /* # of attributes -- 64, since it's a 64-bit field */ |
| 14 | #define ATR_NAME_SIZE 25 /* maximum size of attribute names */ |
| 15 | |
| 16 | using namespace std; |
| 17 | |
| 18 | class Attributes { |
| 19 | protected: |
| 20 | uint64_t attributes; |
| 21 | char atNames[NUM_ATR][ATR_NAME_SIZE]; |
| 22 | public: |
| 23 | Attributes(void); |
| 24 | ~Attributes(void); |
| 25 | void SetAttributes(uint64_t a) {attributes = a;} |
| 26 | uint64_t GetAttributes(void) {return attributes;} |
| 27 | void DisplayAttributes(void); |
| 28 | void ChangeAttributes(void); |
| 29 | }; // class Attributes |
| 30 | |
| 31 | #endif |