This repository has been archived on 2025-04-11. You can view files and clone it, but cannot push or open issues or pull requests.
dmspine64backup/Attribute.h

26 lines
434 B
C
Raw Normal View History

2015-09-15 20:17:21 -05:00
#include <iostream>
#include <vector>
using namespace std;
2015-09-17 17:14:28 -05:00
class Attribute{
2015-09-15 22:18:19 -05:00
vector<string> values;
2015-09-15 20:17:21 -05:00
string name;
2015-09-15 20:55:21 -05:00
string type;
bool key;
2015-09-15 20:17:21 -05:00
int size;
public:
2015-09-21 16:27:23 -05:00
Attribute();
2015-09-17 18:30:45 -05:00
Attribute(string n, string t, bool k);
void addCell(string v);
string operator[](int i);
vector<string> getValues();
string getName();
2015-09-21 16:27:23 -05:00
void setName(string s);
2015-09-17 18:30:45 -05:00
string getType();
bool isKey();
int getSize();
2015-09-21 16:27:23 -05:00
void rename(string s);
2015-09-17 18:30:45 -05:00
void display();
2015-09-17 18:34:03 -05:00
};