Pleora Technologies Inc. eBUS SDK v7.0.1.7536 API



Loading...
Searching...
No Matches
PvConfigurationWriter.h
1// *****************************************************************************
2//
3// Copyright (c) 2008, Pleora Technologies Inc., All rights reserved.
4//
5// *****************************************************************************
6
7#ifndef __PVCONFIGURATIONWRITER_H__
8#define __PVCONFIGURATIONWRITER_H__
9
10#include <PvPersistenceLib.h>
11#include <PvDevice.h>
12#include <PvStream.h>
13#include <PvStringList.h>
14#include <PvPropertyList.h>
15
16
17namespace PvPersistenceLib
18{
19 class ConfigurationWriter;
20}
21
29{
30public:
31
35 PV_PERSISTENCE_API PvConfigurationWriter();
36
40 PV_PERSISTENCE_API ~PvConfigurationWriter();
41
50 PV_PERSISTENCE_API PvResult Store( PvDevice *aDevice, PvString aName = PvString( "" ) );
51
60 PV_PERSISTENCE_API PvResult Store( PvStream *aStream, PvString aName = PvString( "" ) );
61
70 PV_PERSISTENCE_API PvResult Store( const PvString &aString, const PvString &aName );
71
81 PV_PERSISTENCE_API PvResult Store( PvGenParameterArray *aGenParameterArray,
82 PvString aName = PvString( "" ),
83 PvStringList *aExtendedBlackList = NULL );
84
93 PV_PERSISTENCE_API PvResult Store( PvPropertyList *aPropertyList,
94 PvString aName = PvString( "" ) );
95
103 PV_PERSISTENCE_API PvResult Save( const PvString &aFilename );
104
112 PV_PERSISTENCE_API PvResult SaveToString( PvString &aString );
113
120 PV_PERSISTENCE_API void SetErrorList( PvStringList *aList, const PvString &aPrefix );
121
122protected:
123
124private:
125
126 PvPersistenceLib::ConfigurationWriter *mThis;
127
128 PvStringList *mErrorList;
129 PvString mErrorPrefix;
130
131 // Not implemented
133 const PvConfigurationWriter &operator=( const PvConfigurationWriter & );
134
135};
136
137#endif
Writes configuration data to persistence files.
Definition PvConfigurationWriter.h:29
PvResult SaveToString(PvString &aString)
Saves the configuration to a string.
Definition PvConfigurationWriter.cpp:242
PvResult Save(const PvString &aFilename)
Saves the configuration to a file.
Definition PvConfigurationWriter.cpp:222
void SetErrorList(PvStringList *aList, const PvString &aPrefix)
Sets the error list for collecting error messages during store operations.
Definition PvConfigurationWriter.cpp:261
PvConfigurationWriter()
Constructor.
Definition PvConfigurationWriter.cpp:49
PvResult Store(PvDevice *aDevice, PvString aName=PvString(""))
Stores configuration from a device.
Definition PvConfigurationWriter.cpp:92
~PvConfigurationWriter()
Destructor.
Definition PvConfigurationWriter.cpp:62
Connect, configure and control a GigE Vision or USB3 Vision device.
Definition PvDevice.h:42
GenICam feature array.
Definition PvGenParameterArray.h:73
Class used to hold a group of PvProperty objects.
Definition PvPropertyList.h:21
Result information.
Definition PvResult.h:30
Receive data from a GigE Vision or USB3 Vision transmitter.
Definition PvStream.h:51
String class.
Definition PvString.h:26
Class used to hold a group of PvString objects.
Definition PvStringList.h:20

Copyright (c) 2002-2026 Pleora Technologies Inc.
www.pleora.com