DaoAI World C++ SDK INDUSTRIAL 2024.8.0
Loading...
Searching...
No Matches
component_memory.h
Go to the documentation of this file.
1// Copyright (c) 2024, DaoAI Robotics. All rights reserved.
2// Version: 0.0.0
3
4#pragma once
5#include <filesystem>
6
7namespace DaoAI
8{
9 namespace DeepLearning
10 {
11 class ComponentMemoryImpl;
12
14 {
15 public:
17
18 ComponentMemory(std::shared_ptr<ComponentMemoryImpl> impl);
19
24 DAOAI_API ComponentMemory(const std::filesystem::path& file_path);
25
30 DAOAI_API void save(const std::filesystem::path& save_path) const;
31
36 DAOAI_API void load(const std::filesystem::path& file_path);
37
38 private:
39 std::shared_ptr<ComponentMemoryImpl> impl_ = nullptr;
40
42 };
43 }
44}
#define DAOAI_API
Definition API_EXPORT.h:13
Definition component_memory.h:14
DAOAI_API void load(const std::filesystem::path &file_path)
Load the component memory from file path.
ComponentMemory(std::shared_ptr< ComponentMemoryImpl > impl)
DAOAI_API ComponentMemory(const std::filesystem::path &file_path)
Constructor that loads a component memory from file path.
friend class UnsupervisedDefectSegmentationImpl
Definition component_memory.h:41
DAOAI_API void save(const std::filesystem::path &save_path) const
Save the component memory to file path.
Definition common.h:14