Lens AI Profiler Cpp
include
parser_factory.h
1
#ifndef PARSER_FACTORY_H
2
#define PARSER_FACTORY_H
3
4
#include "modeloutput_parser.h"
5
#include "yolo_parser.h"
6
#include "resnet_parser.h"
7
#include <memory>
8
#include <stdexcept>
9
10
class
ParserFactory
{
11
public
:
12
// Factory method to create the appropriate parser based on model type
13
static
std::unique_ptr<ModelOutputParser> createParser(
const
std::string& model_type);
14
};
15
16
#endif
// PARSER_FACTORY_H
ParserFactory
Definition:
parser_factory.h:10
Generated by
1.9.1