Mech-Eye API Reference 2.1.4-alpha
API reference documentation for Mech-Eye 3D Laser Profiler
Loading...
Searching...
No Matches
UserSetManager.h
1#pragma once
2#include <memory>
3#include "api_global.h"
4#include "UserSet.h"
5
6namespace mmind {
7
8namespace eye {
9
14{
15public:
16 MMIND_API_EXPORT virtual ~UserSetManager();
17
21 MMIND_API_EXPORT UserSet& currentUserSet() const;
22
26 MMIND_API_EXPORT ErrorStatus getAllUserSetNames(std::vector<std::string>& userSets) const;
27
31 MMIND_API_EXPORT ErrorStatus selectUserSet(const std::string& userSetName) const;
32
36 MMIND_API_EXPORT ErrorStatus addUserSet(const std::string& userSetName) const;
37
41 MMIND_API_EXPORT ErrorStatus deleteUserSet(const std::string& userSetName) const;
42
46 MMIND_API_EXPORT ErrorStatus saveToFile(const std::string& fileName) const;
47
51 MMIND_API_EXPORT ErrorStatus loadFromFile(const std::string& fileName);
52
53private:
54 std::shared_ptr<class UserSetManagerImpl> _impl;
56 explicit UserSetManager(const std::shared_ptr<UserSetManagerImpl>& impl);
57 friend class CameraImpl;
58 friend class ProfilerImpl;
59};
60
61} // namespace eye
62} // namespace mmind
Represents a device parameter group.
Definition UserSet.h:16
Manages device parameter groups.
MMIND_API_EXPORT ErrorStatus loadFromFile(const std::string &fileName)
Imports device parameter groups from a JSON file and overwrites existing device parameter groups on t...
MMIND_API_EXPORT ErrorStatus addUserSet(const std::string &userSetName) const
Adds a device parameter group to the device.
MMIND_API_EXPORT UserSet & currentUserSet() const
Returns a reference to the UserSet object.
MMIND_API_EXPORT ErrorStatus saveToFile(const std::string &fileName) const
Exports all device parameter groups to a JSON file.
MMIND_API_EXPORT ErrorStatus selectUserSet(const std::string &userSetName) const
Selects a device parameter group with which all parameter adjustments are associated.
MMIND_API_EXPORT ErrorStatus getAllUserSetNames(std::vector< std::string > &userSets) const
Gets the names of all available device parameter groups.
MMIND_API_EXPORT ErrorStatus deleteUserSet(const std::string &userSetName) const
Deletes the selected device parameter group.
The types of errors.
Definition ErrorStatus.h:11