DBC parser initial commit.
This commit is contained in:
22
dbc_tree_builder.h
Normal file
22
dbc_tree_builder.h
Normal file
@@ -0,0 +1,22 @@
|
||||
#ifndef DBC_TREE_BUILDER_H
|
||||
#define DBC_TREE_BUILDER_H
|
||||
|
||||
#include <memory>
|
||||
|
||||
#include "dbc_database.h"
|
||||
#include "tree_node.h"
|
||||
|
||||
/**
|
||||
* @brief Builds a simple tree from parsed DBC database.
|
||||
*/
|
||||
class DbcTreeBuilder {
|
||||
public:
|
||||
/**
|
||||
* @brief Build tree representation of parsed DBC data.
|
||||
* @param database Parsed database.
|
||||
* @return Root node of the tree.
|
||||
*/
|
||||
std::unique_ptr<TreeNode> Build (const DbcDatabase &database) const;
|
||||
};
|
||||
|
||||
#endif /* DBC_TREE_BUILDER_H */
|
||||
Reference in New Issue
Block a user