FLImaging 7.8.25.3
ModelUtilities.h
1#pragma once
8
9namespace FLImaging
10{
11 namespace Foundation
12 {
19 class FL_EXPORT CModelUtilities : public Base::CFLBase
20 {
21 public:
30
42 CModelUtilities(const Base::CFLString<wchar_t>& strModelFullPath, const Base::CFLString<wchar_t>& strPropertyName);
43
52
66 virtual const CResult Initialize(const Base::CFLString<wchar_t>& strModelFullPath, const Base::CFLString<wchar_t>& strPropertyName);
67
77 virtual const CResult Clear();
78
89
100
111
122
132 virtual const CResult Load();
133
143 virtual const CResult Save() const;
144
160 virtual Base::CFLString<wchar_t> GetValue(const Base::CFLString<wchar_t>& strSectionName, const Base::CFLString<wchar_t>& strKeyName, const wchar_t* pWcsDefaultValue = L"") const;
161
177 virtual const CResult SetValue(const Base::CFLString<wchar_t>& strSectionName, const Base::CFLString<wchar_t>& strKeyName, const Base::CFLString<wchar_t>& strValue);
178
179 DeclareGetClassType();
180
181
182 protected:
183 virtual const CResult SetModelFullPath(const Base::CFLString<wchar_t>& strModelFullPath);
184 virtual const CResult SetPropertyName(const Base::CFLString<wchar_t>& strPropertyName);
185
186 virtual const CResult MakeCompleteModelFilePath();
187
188 Base::CFLString<wchar_t> m_strModelFullPath;
189 Base::CFLString<wchar_t> m_strPropertyName;
190
191 Base::CFLString<wchar_t> m_strModelName;
192 Base::CFLString<wchar_t> m_strCompleteModelFilePath;
193
195 };
196 }
197}
Template type array class.
Definition FLArray.h:71
Top-level base class of FLImaging.
Definition FLBase.h:36
Template type string class.
Definition FLString.h:34
FLImaging module execution result object.
Definition ResultsDef.h:1704
virtual Base::CFLString< wchar_t > GetModelName() const
Returns the model name.
virtual Base::CFLString< wchar_t > GetCompleteModelFilePath() const
Returns the complete path of the model property file.
virtual Base::CFLString< wchar_t > GetValue(const Base::CFLString< wchar_t > &strSectionName, const Base::CFLString< wchar_t > &strKeyName, const wchar_t *pWcsDefaultValue=L"") const
Returns the value associated with the specified section and key.
virtual const CResult Save() const
Saves property values to the model property file.
virtual Base::CFLString< wchar_t > GetModelFullPath() const
Returns the full path of the model.
virtual Base::CFLString< wchar_t > GetPropertyName() const
Returns the property name.
virtual const CResult Clear()
Clears all internal data.
virtual const CResult Load()
Loads property values from the model property file.
virtual const CResult SetValue(const Base::CFLString< wchar_t > &strSectionName, const Base::CFLString< wchar_t > &strKeyName, const Base::CFLString< wchar_t > &strValue)
Sets the value associated with the specified section and key.
virtual const CResult Initialize(const Base::CFLString< wchar_t > &strModelFullPath, const Base::CFLString< wchar_t > &strPropertyName)
Initializes the object with the specified model path and property name.
CModelUtilities(const Base::CFLString< wchar_t > &strModelFullPath, const Base::CFLString< wchar_t > &strPropertyName)
Constructs a model utility object with the specified model path and property name.
CModelUtilities()
Default constructor.
Definition AlgorithmBase.h:16