IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
FileSerializationUtils.h
Go to the documentation of this file.
1 // FileSerializationUtils.h:
3 // -------------------------
4 //
14 
15 #ifndef __IPSDKSERIALIZATION_FILESERIALIZATIONUTILS_H__
16 #define __IPSDKSERIALIZATION_FILESERIALIZATIONUTILS_H__
17 
20 #include <boost/filesystem/path.hpp>
21 
22 namespace ipsdk {
23 
24 class BaseSerializationObject;
25 
27 // Xml serialization
29 
34 writeToXmlFile(const boost::filesystem::path& filePath,
35  const BaseSerializationObject& object);
37 writeToXmlFile(const boost::filesystem::path& filePath,
38  const SerializationObjectConstPtr& pObject);
40 
45 readFromXmlFile(const boost::filesystem::path& filePath,
46  BaseSerializationObject& object);
47 IPSDKSERIALIZATION_API FileReadResult
48 readFromXmlFile(const boost::filesystem::path& filePath);
50 
52 // Binary serialization
54 
59 writeToBinaryFile(const boost::filesystem::path& filePath,
60  const BaseSerializationObject& object);
62 writeToBinaryFile(const boost::filesystem::path& filePath,
63  const SerializationObjectConstPtr& pObject);
65 
70 readFromBinaryFile(const boost::filesystem::path& filePath,
71  BaseSerializationObject& object);
72 IPSDKSERIALIZATION_API FileReadResult
73 readFromBinaryFile(const boost::filesystem::path& filePath);
75 
78 
79 } // end of namespace ipsdk
80 
81 #endif // __IPSDKSERIALIZATION_XMLFILESERIALIZATIONUTILS_H__
IPSDKSERIALIZATION_API BoolResult writeToBinaryFile(const boost::filesystem::path &filePath, const BaseSerializationObject &object)
write a base serialization object to a binary file
Main namespace for IPSDK library.
Definition: AlgorithmFunctionEfficiency.h:22
boost::shared_ptr< const BaseSerializationObject > SerializationObjectConstPtr
shared pointer to a const base serialization object
Definition: SerializationTypes.h:32
Predefined types for file serialization functions.
IPSDKSERIALIZATION_API BoolResult readFromBinaryFile(const boost::filesystem::path &filePath, BaseSerializationObject &object)
read a base serialization object from a binary file
IPSDKSERIALIZATION_API BoolResult readFromXmlFile(const boost::filesystem::path &filePath, BaseSerializationObject &object)
read a base serialization object from a xml file
ProcessingResult< bool > BoolResult
typedef for boolean results associated to a string description
Definition: ProcessingResultTypes.h:29
IPSDKSERIALIZATION_API BoolResult writeToXmlFile(const boost::filesystem::path &filePath, const BaseSerializationObject &object)
write a base serialization object to a xml file
Definition of import/export macro for library.
#define IPSDKSERIALIZATION_API
Import/Export macro for library IPSDKUtil.
Definition: IPSDKSerializationExports.h:27