Logo Search packages:      
Sourcecode: gdisk version File versions  Download package


/* 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 <string>


#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;

00015 class Attributes {
   static string atNames[NUM_ATR];
   static int numAttrs;
   void Setup(void);
   uint64_t attributes;

   Attributes(const uint64_t a);
   void operator=(uint64_t a) {attributes = a;}

   uint64_t GetAttributes(void) const {return attributes;}
   void DisplayAttributes(void);
   void ShowAttributes(const uint32_t partNum);

   void ChangeAttributes(void);
   bool OperateOnAttributes(const uint32_t partNum, const string& attributeOperator, const string& attributeBits);

   static const string& GetAttributeName(const uint32_t bitNum) {return atNames [bitNum];}
   static void ListAttributes(void);
}; // class Attributes

ostream & operator<<(ostream & os, const Attributes & data);


Generated by  Doxygen 1.6.0   Back to index