summaryrefslogtreecommitdiff
path: root/attributes.h
blob: ab8cb14de9315ad8f6d028f7b84606f4ea23d882 (plain)
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
/* This program is copyright (c) 2009 by Roderick W. Smith. It is distributed
  under the terms of the GNU GPL version 2, as detailed in the COPYING file. */

#include <stdint.h>
//#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include "support.h"

#ifndef __GPT_ATTRIBUTES
#define __GPT_ATTRIBUTES

#define NUM_ATR 64 /* # of attributes -- 64, since it's a 64-bit field */
#define ATR_NAME_SIZE 25 /* maximum size of attribute names */

using namespace std;

class Attributes {
protected:
   uint64_t attributes;
   string atNames[NUM_ATR];
public:
   Attributes(void);
   ~Attributes(void);
   void SetAttributes(uint64_t a) {attributes = a;}
   uint64_t GetAttributes(void) {return attributes;}
   void DisplayAttributes(void);
   void ChangeAttributes(void);
}; // class Attributes

#endif