24 lines
480 B
C++
24 lines
480 B
C++
// Copyright (c) OpenMMLab. All rights reserved.
|
|
|
|
#ifndef MMDEPLOY_SRC_CORE_MODULE_H_
|
|
#define MMDEPLOY_SRC_CORE_MODULE_H_
|
|
|
|
#include "core/macro.h"
|
|
#include "core/registry.h"
|
|
#include "core/status_code.h"
|
|
#include "core/value.h"
|
|
|
|
namespace mmdeploy {
|
|
|
|
class MMDEPLOY_API Module {
|
|
public:
|
|
virtual ~Module() = default;
|
|
virtual Result<Value> Process(const Value& args) = 0;
|
|
};
|
|
|
|
MMDEPLOY_DECLARE_REGISTRY(Module);
|
|
|
|
} // namespace mmdeploy
|
|
|
|
#endif // MMDEPLOY_SRC_CORE_MODULE_H_
|