Revision 1923

trunk/src/linad99/manip.cpp (revision 1923)
1
/*
2
 * $Id$
3
 *
4
 * Author: David Fournier
5
 * Copyright (c) 2008-2012 Regents of the University of California
6
 */
7
/**
8
 * \file
9
 * Description not yet available.
10
 */
11
#ifdef __GNUDOS__
12
 #include <admanip.h>
13
 #ifndef IOMANIPdeclare
14
  #define IOMANIPdeclare(T) \
15

  
16
  IOMANIPdeclare(int);
17
  IOMANIPdeclare(long);
18
  #ifndef _IOMANIP_H
19
    #define _IOMANIP_H
20
  #endif
21
 #endif /*!IOMANIPdeclare*/
22
#else
23
  #include <iomanip.h>
24
  #include <iostream.h>
25
#endif
26

  
27
/**
28
 * Description not yet available.
29
 * \param
30
 */
31
static ios &sfill(const ios &s, int c)
32
{
33
    s.fill(c);
34
    return s;
35
}
36

  
37
/**
38
 * Description not yet available.
39
 * \param
40
 */
41
SMANIP(int) setfill(int c)
42
{
43
    return SMANIP(int)(sfill, c);
44
}
45

  
46
/**
47
 * Description not yet available.
48
 * \param
49
 */
50
static ios &swidth(const ios &s, int w)
51
{
52
    s.width(w);
53
    return s;
54
}
55

  
56
/**
57
 * Description not yet available.
58
 * \param
59
 */
60
SMANIP(int) setw(int w)
61
{
62
    return SMANIP(int)(swidth, w);
63
}
64

  
65
/**
66
 * Description not yet available.
67
 * \param
68
 */
69
static ios &sprec(const ios &s, int p)
70
{
71
    s.precision(p);
72
    return s;
73
}
74

  
75
/**
76
 * Description not yet available.
77
 * \param
78
 */
79
SMANIP(int) setprecision(int p)
80
{
81
    return SMANIP(int)(sprec, p);
82
}
83

  
84
/**
85
 * Description not yet available.
86
 * \param
87
 */
88
static ios &rsf(const ios& s, long v)
89
{
90
    s.unsetf(v);
91
    return s;
92
}
93

  
94
/**
95
 * Description not yet available.
96
 * \param
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff