atlas  0.6
ioutils.h
Go to the documentation of this file.
1 /*
2  This is ioutils.h
3 
4  Copyright (C) 2004,2005 Fokko du Cloux
5  part of the Atlas of Lie Groups and Representations
6 
7  For license information see the LICENSE file
8 */
9 
10 #ifndef IOUTILS_H /* guard against multiple inclusions */
11 #define IOUTILS_H
12 
13 #include <iosfwd>
14 #include <string>
15 
16 namespace atlas {
17 
18  /* The class OutputFile was moved from here to interactive.h
19 
20  The reason is that its implementation performs user input, which would
21  make the rest of this module unusable for atlas, which does not want to
22  link in any code performing input
23  */
24 
25 /******** constant declarations **********************************************/
26 
27 namespace ioutils {
28 
29  const size_t LineSize = 79;
30  const size_t IndentSize = 4;
31 
32 }
33 
34 /******** function declarations *********************************************/
35 
36 namespace ioutils {
37 
38 unsigned long digits(unsigned long, unsigned long);
39 
40 std::ostream& foldLine(std::ostream&, const std::string& line,
41  const char* preHyphens = " ",
42  const char* postHyphens = "",
43  size_t h = IndentSize,
44  size_t lineSize = LineSize);
45 
46 std::istream& skipSpaces(std::istream&);
47 
48 }
49 
50 
51 }
52 
53 #endif
std::ostream & foldLine(std::ostream &strm, const std::string &line, const char *preHyphens, const char *postHyphens, size_t h, size_t lineSize)
Definition: ioutils.cpp:57
unsigned long digits(unsigned long a, unsigned long b)
Definition: ioutils.cpp:33
const size_t IndentSize
Definition: ioutils.h:30
Definition: Atlas.h:38
std::istream & skipSpaces(std::istream &strm)
Definition: ioutils.cpp:125
Definition: cweave.c:262
const size_t LineSize
Definition: ioutils.h:29