blob: 14329c66408bb095d345845ae88800a1ba674b0f [file] [log] [blame]
srs5694221e0872009-08-29 15:00:31 -04001/* 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
srs5694e7b4ff92009-08-18 13:16:10 -04004#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
16using namespace std;
17
18class Attributes {
19protected:
20 uint64_t attributes;
21 char atNames[NUM_ATR][ATR_NAME_SIZE];
22public:
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