21 #ifndef _VFN_STREAM_FORMAT_H_
22 #define _VFN_STREAM_FORMAT_H_
28 #include "ObjCryst/CrystVector/CrystVector.h"
39 FormatInt(
const long num,
const int width=5);
46 std::ostream& operator<< (std::ostream& os,
const FormatInt& fInt);
57 FormatFloat(
const REAL num,
const int width=10,
const int precision=4);
66 std::ostream& operator<< (std::ostream& os,
const FormatFloat &fFloat);
76 FormatString(
const string &str,
const unsigned int width=5);
81 const unsigned int mWidth;
84 std::ostream& operator<< (std::ostream& os,
const FormatString& fStr);
101 const int precision=4,
106 const int precision=4,
112 const int precision=4,
119 const int precision=4,
127 const int precision=4,
136 const int precision=4,
141 const int precision=4,
147 const int precision=4,
151 const int precision=4,
156 std::vector<const CrystVector<T> *>mvpVectors;
158 const int mPrecision;
162 template<
class T> std::ostream& operator<< (std::ostream &os, const FormatVertVector<T> &fVect);
173 const int precision=4);
179 const int mPrecision;
182 template<
class T> ostream& operator<< (std::ostream &os, const FormatHorizVector<T> &fVect);
195 const int precision=4,
202 const int precision=4,
210 const int precision=4,
219 const int precision=4,
229 const int precision=4,
240 const int precision=4,
252 const int precision=4,
265 const int precision=4,
279 const int precision=4,
294 const int precision=4,
298 const int precision=4,
303 std::vector<const CrystVector<T> *>mvpVectors;
305 const int mPrecision;
309 template<
class T> std::ostream& operator<< (std::ostream& os, const FormatVertVectorHKLFloats<T> &fStr);
output a number as a formatted integer:
Output vectors as column arrays, with the first 3 columns printed as integers.
output one or several vectors as (a) column(s):
Format vector as horiz array:
Vector library (Blitz++ mimic) for ObjCryst++.
output a number as a formatted float:
output a string with a fixed length (adding necessary space or removing excess characters) : ...