Richard Boegli's CnC_Generals_Zero_Hour Fork
WIP
This is documentation of Richard Boegil's Zero Hour Fork
Loading...
Searching...
No Matches
textfile.h
Go to the documentation of this file.
1
/*
2
** Command & Conquer Generals Zero Hour(tm)
3
** Copyright 2025 Electronic Arts Inc.
4
**
5
** This program is free software: you can redistribute it and/or modify
6
** it under the terms of the GNU General Public License as published by
7
** the Free Software Foundation, either version 3 of the License, or
8
** (at your option) any later version.
9
**
10
** This program is distributed in the hope that it will be useful,
11
** but WITHOUT ANY WARRANTY; without even the implied warranty of
12
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
** GNU General Public License for more details.
14
**
15
** You should have received a copy of the GNU General Public License
16
** along with this program. If not, see <http://www.gnu.org/licenses/>.
17
*/
18
19
/***********************************************************************************************
20
*** C O N F I D E N T I A L --- W E S T W O O D S T U D I O S ***
21
***********************************************************************************************
22
* *
23
* Project Name : Command & Conquer *
24
* *
25
* $Archive:: /Commando/Code/wwlib/textfile.h $*
26
* *
27
* $Author:: Patrick $*
28
* *
29
* $Modtime:: 5/31/00 9:22a $*
30
* *
31
* $Revision:: 2 $*
32
* *
33
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
34
35
#if _MSC_VER >= 1000
36
#pragma once
37
#endif
// _MSC_VER >= 1000
38
39
#ifndef __TEXT_FILE_H
40
#define __TEXT_FILE_H
41
42
43
#include "
rawfile.h
"
44
46
// Forward declarations
48
class
StringClass
;
49
50
52
//
53
// TextFileClass
54
//
55
// This file class simply adds text file support to the RawFileClass object.
56
// It is used for reading/writing lines of text (looking for CR/LF or LF's).
57
//
59
class
TextFileClass
:
public
RawFileClass
60
{
61
public
:
62
64
// Public constructors/destructors
66
TextFileClass
(
void
);
67
TextFileClass
(
char
const
*filename);
68
TextFileClass
(
const
TextFileClass
&src);
69
virtual
~TextFileClass
(
void
);
70
72
// Public operators
74
const
TextFileClass
&
operator=
(
const
TextFileClass
&src);
75
77
// Public methods
79
bool
Read_Line
(
StringClass
&
string
);
80
bool
Write_Line
(
const
StringClass
&
string
);
81
};
82
83
84
#endif
//__TEXT_FILE_H
85
RAWFILE.H
RawFileClass::RawFileClass
RawFileClass(char const *filename)
Definition
rawfile.cpp:246
StringClass
Definition
wwstring.h:72
TextFileClass::TextFileClass
TextFileClass(const TextFileClass &src)
TextFileClass::operator=
const TextFileClass & operator=(const TextFileClass &src)
TextFileClass::Write_Line
bool Write_Line(const StringClass &string)
Definition
textfile.cpp:161
TextFileClass::Read_Line
bool Read_Line(StringClass &string)
Definition
textfile.cpp:79
TextFileClass::TextFileClass
TextFileClass(void)
Definition
textfile.cpp:44
TextFileClass::~TextFileClass
virtual ~TextFileClass(void)
Definition
textfile.cpp:67
Code
Libraries
Source
WWVegas
WWLib
textfile.h
Generated by
1.13.2