Init
This commit is contained in:
27
P1/ADS_P1_1_Ringpuffer/RingNode.h
Executable file
27
P1/ADS_P1_1_Ringpuffer/RingNode.h
Executable file
@@ -0,0 +1,27 @@
|
||||
/*************************************************
|
||||
* ADS Praktikum 1.1
|
||||
* RingNode.h
|
||||
* Erweiterung um Hilfsfunktionen gestattet.
|
||||
*************************************************/
|
||||
#pragma once
|
||||
#include <string>
|
||||
|
||||
class RingNode {
|
||||
private:
|
||||
int m_oldAge;
|
||||
std::string m_description;
|
||||
std::string m_symbolicData;
|
||||
RingNode* m_next;
|
||||
|
||||
public:
|
||||
RingNode();
|
||||
RingNode(int a, std::string d, std::string s) : m_oldAge { a }, m_description { d }, m_symbolicData { s }, m_next { nullptr } { };
|
||||
int getOldAge();
|
||||
void setOldAge(int);
|
||||
std::string getDescription();
|
||||
void setDescription(std::string);
|
||||
std::string getSymbolicData();
|
||||
void setSymbolicData(std::string);
|
||||
RingNode* getNext();
|
||||
void setNext(RingNode*);
|
||||
};
|
||||
Reference in New Issue
Block a user