wip; wont build
This commit is contained in:
1 parent
4959429aee
commit
1c5ffa1dde
13 files changed
+64
-45
No files matched your search
@@ -1,22 +1,28 @@
|
||||
#ifndef RECORD_HPP
|
||||
#define RECORD_HPP
|
||||
#include <cstdint>
|
||||
#include <string>
|
||||
#include "Resource.hpp"
|
||||
#include <iostream>
|
||||
#include <sstream>
|
||||
|
||||
namespace Plains {
|
||||
namespace Core {
|
||||
namespace DNS {
|
||||
|
||||
using std::string;
|
||||
using std::ostream;
|
||||
using std::stringbuf;
|
||||
|
||||
// Provides an abstract class for dns records that may be stored in the database
|
||||
class Record : public Resource
|
||||
{
|
||||
public:
|
||||
const uint16_t _id;
|
||||
string serialize();
|
||||
Record(const uint16_t id) : _id(id) {}
|
||||
ostream& operator>>(Serializable& object);
|
||||
Record(const uint16_t id);
|
||||
|
||||
private:
|
||||
stringbuf _sb;
|
||||
ostream* _os;
|
||||
};
|
||||
|
||||
class ARecord : public Record { ARecord(); };
|
||||
|
||||
Reference in new issue
Block a user