Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F625350
POASerializer.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
POASerializer.h
View Options
/*
* Copyright (C) 2011-2012 Me and My Shadow
*
* This file is part of Me and My Shadow.
*
* Me and My Shadow is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Me and My Shadow is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Me and My Shadow. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef POASERIALIZER_H
#define POASERIALIZER_H
#include
"ITreeSerializer.h"
//This class is used for reading/writing of TreeStorageNodes to/from POAformat-files.
class
POASerializer
:
public
ITreeSerializer
{
public
:
//This method will read the inputstream and parses it.
//The result will be placed in a TreeStorageNode.
//fin: The input stream which will be read from.
//objOut: The TreeStorageNode the result will be put in.
//loadSubNodesOnly: Boolean if only the subNodes need to be loaded.
//Returns: true if the reading and parsing succeeded.
virtual
bool
readNode
(
std
::
istream
&
fin
,
ITreeStorageBuilder
*
objOut
,
bool
loadSubNodesOnly
=
false
);
//This method will write a TreeStorageNode to a outputstream.
//obj: The TreeStorageNode to save.
//fout: The output stream which will be writen to.
//saveSubNodesOnly: Boolean if only the subNodes need to be saved.
//Returns: true if the writing succeeded.
virtual
void
writeNode
(
ITreeStorageReader
*
obj
,
std
::
ostream
&
fout
,
bool
bWriteHeader
=
true
,
bool
saveSubNodeOnly
=
false
);
};
#endif
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Sat, Nov 14, 11:22 PM (1 d, 11 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
117218
Default Alt Text
POASerializer.h (1 KB)
Attached To
Mode
R79 meandmyshadow
Attached
Detach File
Event Timeline