FOX/ObjCryst++  1.10.X (development)
ObjCryst/IO.h
1 /* ObjCryst++ Object-Oriented Crystallographic Library
2  (c) 2000-2002 Vincent Favre-Nicolin vincefn@users.sourceforge.net
3  2000-2001 University of Geneva (Switzerland)
4 
5  This program is free software; you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation; either version 2 of the License, or
8  (at your option) any later version.
9 
10  This program is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU General Public License for more details.
14 
15  You should have received a copy of the GNU General Public License
16  along with this program; if not, write to the Free Software
17  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 */
19 /* IO.h
20 *
21 */
22 #ifndef _OBJCRYST_IOCRYST_H_
23 #define _OBJCRYST_IOCRYST_H_
24 #endif //_OBJCRYST_IOCRYST_H_
25 
26 #include "ObjCryst/RefinableObj/IO.h"
27 #include "ObjCryst/RefinableObj/RefinableObj.h"
28 
29 
30 namespace ObjCryst
31 {
41 void XMLCrystFileSaveGlobal(const string & filename);
51 void XMLCrystFileSaveGlobal(std::ostream &out);
63 ObjRegistry<XMLCrystTag> XMLCrystFileLoadObjectList(const string & filename);
64 
75 template<class T> void XMLCrystFileLoadObject(const string & file,
76  const string &tagName,
77  const string &name, T*obj);
78 
85 void XMLCrystFileLoadAllObject(const string & file);
92 void XMLCrystFileLoadAllObject(std::istream &is);
93 
94 }
void XMLCrystFileLoadObject(const string &filename, const string &tagName, const string &name, T *obj)
Load an object from a file, identifying it from its tag.
void XMLCrystFileSaveGlobal(const string &filename)
Save all Objcryst++ objects.
void XMLCrystFileLoadAllObject(const string &filename)
Load all 'top' objects from a file (Crystal, PowderPattern, DiffDataSingleCrystal and GlobalOptimObj ...
ObjRegistry< XMLCrystTag > XMLCrystFileLoadObjectList(const string &filename)
Get the list (tags) of ObjCryst objects in a file.
The namespace which includes all objects (crystallographic and algorithmic) in ObjCryst++.
Definition: Atom.cpp:47