16#ifndef __albaXMLStorage_h__
17#define __albaXMLStorage_h__
71 virtual int StoreToURL(
const char * filename,
const char * url);
83 virtual void SetURL(
const char *name);
Interface implementing the Observer of the Subject/Observer design pattern.
Abstract class for an abject mastering the storing/restoring of objects This is an abstract class pro...
albaString - performs common string operations on c-strings.
concrete implementation of albaStorageElement as an XML-DOM element This class represent a concrete i...
Concrete implementation of Storage object using Xerces-C for storing in XML.
virtual int OpenDirectory(const char *pathname)
populate the list of file in the directory
mmuXMLDOM * GetXMLDOM()
Return the instance of the DOM document used while reading and writing.
albaString m_DefaultTmpFolder
used to store the current default tmp folder
virtual int InternalStore()
This is called by Store() and must be reimplemented by subclasses.
virtual void EmptyGarbageCollector()
empty the garbage collector list deleting old files
albaString m_DocumentVersion
Open Document version.
albaTypeMacro(albaXMLStorage, albaStorage)
albaString m_FileType
The type of file to be opened.
virtual void SetURL(const char *name)
Set the URL of the document to be read or written.
virtual int ResolveInputURL(const char *url, albaString &filename, albaObserver *observer=NULL)
resolve an URL and provide local filename to be used as input
virtual int ReleaseURL(const char *url)
release file from storage.
virtual int StoreToURL(const char *filename, const char *url)
resolve an URL and provide a local filename to be used as output
albaString m_Version
Current MSF version.
virtual ~albaXMLStorage()
const char * GetVersion()
The version of the file format used type of file.
virtual int DeleteURL(const char *url)
remove the file from URL
void SetVersion(const char *version)
The version of the file format used type of file.
virtual const char * GetTmpFolder()
return the folder where tmp files are stored
virtual int InternalRestore()
This is called by Restore() and must be reimplemented by subclasses.
mmuXMLDOM * m_DOM
PIMPL object storing XML objects' pointers.
const char * GetDocumentVersion()
Return the version of the opened document.
std::set< albaString > m_GarbageCollector
collect URL to be released
const char * GetFileType()
The TAG identifying the type (i.e.
void SetFileType(const char *filetype)
The TAG identifying the type (i.e.
mmuXMLDOM utility class for PIMPL of XML DOM types.