SwatDB
record.h
Go to the documentation of this file.
1 /*
2  * SwatDB
3  *
4  * @authors: See Contributors.doc for code contributors
5  *
6  * Copyright (c) 2020 Swarthmore College Computer Science Department
7  * Swarthmore PA, Professors Tia Newhall, Ameet Soni
8  */
9 
10 #pragma once
11 
16 #include "swatdb_types.h"
17 
18 class Schema;
19 class Data;
20 
28 class Record {
29 
30  public:
31 
35  Record();
36 
48 
56  ~Record(){}
57 
66  Schema* getSchema();
67 
77 
86  void setSchema(Schema* new_schema);
87 
96  void setRecordData(Data* new_data);
97 
111  std::int32_t compare(Record other);
112 
113  private:
114 
120 
126 
127 };
Record()
Default constructor. Sets schema and record_data to nullptr.
Data * record_data
Definition: record.h:125
Data * getRecordData()
Getter for record_data.
Definition: schema.h:27
void setSchema(Schema *new_schema)
Setter for schema.
Schema * getSchema()
Getter function for schema.
Definition: record.h:28
~Record()
Destructor.
Definition: record.h:56
Definition: data.h:25
Schema * schema
Definition: record.h:119
void setRecordData(Data *new_data)
Setter for record_data.
std::int32_t compare(Record other)
Compare function for comparing 2 records.