31 lines
No EOL
396 B
C++
31 lines
No EOL
396 B
C++
#ifndef NODE_H
|
|
#define NODE_H
|
|
|
|
#include <string>
|
|
#include <memory>
|
|
|
|
#include "mnemonic.h"
|
|
|
|
using std::string;
|
|
|
|
class Node {
|
|
public:
|
|
|
|
string getLabel() const;
|
|
|
|
string getComment() const;
|
|
|
|
std::shared_ptr<Mnemonic> getMnemonic() const;
|
|
|
|
string toString() const;
|
|
|
|
|
|
|
|
protected:
|
|
string _label;
|
|
std::shared_ptr<Mnemonic> _mnemonic;
|
|
string _comment;
|
|
};
|
|
|
|
|
|
#endif // NODE_H
|