lintel 0.2.0
Loading...
Searching...
No Matches
Component.h
Go to the documentation of this file.
1#ifndef LINTEL_COMPONENT_H
2#define LINTEL_COMPONENT_H
3
4#include <memory>
5#include <string>
6#include <vector>
7
8#include "Entry.h"
9
10namespace lintel {
13{
14private:
16 std::string m_configRoot;
17
18protected:
22 static std::size_t convertToBytes(const std::string &size);
23
24public:
27 explicit Component(std::string configRoot);
28
30 virtual ~Component() = default;
31
34 [[nodiscard]] const std::string &getConfigRoot() const;
35
41 virtual std::vector<std::shared_ptr<Entry>>
42 parse(const std::string &content, int32_t lineOffset, const std::string &fileName) = 0;
43};
44
45}// namespace lintel
46#endif// LINTEL_COMPONENT_H
Definition Component.h:13
virtual ~Component()=default
static std::size_t convertToBytes(const std::string &size)
const std::string & getConfigRoot() const
virtual std::vector< std::shared_ptr< Entry > > parse(const std::string &content, int32_t lineOffset, const std::string &fileName)=0
Component(std::string configRoot)
Definition BaseFeature.h:6