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 Normal View History

2015-09-30 17:10:16 -05:00
#pragma once
#include <iostream>
#include <vector>
using namespace std;
class Attribute{
vector<string> values;
string name;
string type;
bool key;
int size;
int limit;
public:
Attribute();
Attribute(string n, string t, bool k);
Attribute(string n, string t, bool k, int s);
void addCell(string v);
void removeCell(int index);
string operator[](int i);
vector<string> getValues();
string getName();
void setName(string s);
void setValue(string s, int index);
string getType();
bool isKey();
int getSize();
void display();
void clearAllValues();
};