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

31 lines
572 B
C
Raw Permalink Normal View History

2015-09-26 23:24:24 -05:00
#pragma once
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;
2015-09-28 17:02:04 -05:00
int limit;
2015-09-15 20:17:21 -05:00
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);
Attribute(string n, string t, bool k, int s);
2015-09-17 18:30:45 -05:00
void addCell(string v);
2015-09-26 23:24:24 -05:00
void removeCell(int index);
2015-09-17 18:30:45 -05:00
string operator[](int i);
vector<string> getValues();
string getName();
2015-09-21 16:27:23 -05:00
void setName(string s);
void setValue(string s, int index);
2015-09-17 18:30:45 -05:00
string getType();
bool isKey();
int getSize();
void display();
2015-09-26 23:24:24 -05:00
void clearAllValues();
2015-09-17 18:34:03 -05:00
};