forked from xR3b0rn/dbcppp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNode.h
More file actions
35 lines (28 loc) · 983 Bytes
/
Node.h
File metadata and controls
35 lines (28 loc) · 983 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#pragma once
#include <map>
#include <string>
#include <memory>
#include <functional>
#include "Export.h"
#include "Iterator.h"
#include "Attribute.h"
namespace dbcppp
{
class DBCPPP_API INode
{
public:
static std::unique_ptr<INode> Create(
std::string&& name,
std::string&& comment,
std::vector<std::unique_ptr<IAttribute>>&& attribute_values);
virtual std::unique_ptr<INode> Clone() const = 0;
virtual ~INode() = default;
virtual const std::string& Name() const = 0;
virtual const IAttribute& AttributeValues_Get(std::size_t i) const = 0;
virtual uint64_t AttributeValues_Size() const = 0;
virtual const std::string& Comment() const = 0;
DBCPPP_MAKE_ITERABLE(INode, AttributeValues, IAttribute);
virtual bool operator==(const dbcppp::INode& rhs) const = 0;
virtual bool operator!=(const dbcppp::INode& rhs) const = 0;
};
}