-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathiop.h
26 lines (20 loc) · 863 Bytes
/
iop.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#ifndef IOP
#define IOP
#include <string>
#include <vector>
#include <iostream>
#include "structure.h"
#include "parameter.h"
/*
Functions concerning input and output.
Implementations can be found in "iop.cc".
*/
void xyzout (structure &outputStructure, const std::string &name = "structure.xyz");
void xyzoutall (std::vector<structure> &outputStructures, const std::string &name = "all.xyz");
void simpleout (std::vector<structure> &outputStructures, std::stringstream &ouput);
bool justempty (std::string str);
bool fexists (const std::string &fileName);
std::vector<structure> readallstruct (const std::string& fileName);
int readsettings (parameter<double> &opt, std::vector<double> &p, parameter<int> &switches, double &scalingFactor);
template <typename T> void matrixout (std::vector< std::vector<T> > &matrix, std::ostream &out = std::cout);
#endif