MCPcopy Create free account
hub / github.com/OpenFOAM/OpenFOAM-dev / Ostream

Class Ostream

src/OpenFOAM/db/IOstreams/IOstreams/Ostream.H:54–200  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52\*---------------------------------------------------------------------------*/
53
54class Ostream
55:
56 public IOstream
57{
58
59protected:
60
61 // Protected data
62
63 //- Number of spaces per indent level
64 static const unsigned short indentSize_ = 4;
65
66 //- Indentation of the entry from the start of the keyword
67 static const unsigned short entryIndentation_ = 16;
68
69 //- Current indent level
70 unsigned short indentLevel_;
71
72
73public:
74
75 // Constructors
76
77 //- Set stream status
78 Ostream
79 (
80 streamFormat format=ASCII,
81 versionNumber version=currentVersion,
82 compressionType compression=UNCOMPRESSED
83 )
84 :
85 IOstream(format, version, compression),
86 indentLevel_(0)
87 {}
88
89
90 //- Destructor
91 virtual ~Ostream()
92 {}
93
94
95 // Member functions
96
97 // Write functions
98
99 //- Write next token to stream
100 virtual Ostream& write(const token&) = 0;
101
102 //- Write character
103 virtual Ostream& write(const char) = 0;
104
105 //- Write character string
106 virtual Ostream& write(const char*) = 0;
107
108 //- Write word
109 virtual Ostream& write(const word&) = 0;
110
111 //- Write keyType

Callers 1

UOPstream.CFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected