| 148 | */ |
| 149 | |
| 150 | explicit CoreComponent(const std::string &name, const utils::Identifier& uuid = {}, const std::shared_ptr<utils::IdGenerator>& idGenerator = utils::IdGenerator::getIdGenerator()) |
| 151 | : name_(name) { |
| 152 | if (uuid.isNil()) { |
| 153 | // Generate the global UUID for the flow record |
| 154 | uuid_ = idGenerator->generate(); |
| 155 | } else { |
| 156 | uuid_ = uuid; |
| 157 | } |
| 158 | } |
| 159 | |
| 160 | explicit CoreComponent(const CoreComponent &other) = default; |
| 161 | /** |