Advanced Strategic Command
package.h
Go to the documentation of this file.
1 /*
2  This file is part of Advanced Strategic Command; http://www.asc-hq.de
3  Copyright (C) 1994-2010 Martin Bickel and Marc Schellenberger
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 2 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; see the file COPYING. If not, write to the
17  Free Software Foundation, Inc., 59 Temple Place, Suite 330,
18  Boston, MA 02111-1307 USA
19 */
20 
21 #ifndef packageH
22 #define packageH
23 
24 #include "versionidentifier.h"
25 #include "ascstring.h"
26 #include "basestreaminterface.h"
27 #include "typen.h"
28 
29 
30 class Package {
31  public:
32 
34  public:
37  void read ( tnstream& stream );
38  void write ( tnstream& stream ) const;
39  };
40 
44 
46 
48  typedef vector<PackageDependency> Dependencies;
50 
53 
55 
56  void read ( tnstream& stream );
57  void write ( tnstream& stream ) const;
58 
59  void runTextIO ( PropertyContainer& pc );
60 };
61 
62 
63 
64 #endif
ASCString updateUrl
Definition: package.h:43
void write(tnstream &stream) const
Definition: package.cpp:107
ASCString description
Definition: package.h:42
The interface for all kinds of IO stream.
void write(tnstream &stream) const
Definition: package.cpp:46
The ASCString class provides an abstract way to manipulate strings.
Definition: ascstring.h:14
ASCString archive
the archive in which the package is stored
Definition: package.h:52
void read(tnstream &stream)
Definition: package.cpp:98
void runTextIO(PropertyContainer &pc)
Definition: package.cpp:60
ASCString location
Definition: package.h:54
vector< PackageDependency > Dependencies
the given packages must be present to use this package
Definition: package.h:48
VersionIdentifier version
Definition: package.h:45
ASCString name
Definition: package.h:41
VersionIdentifier version
Definition: package.h:36
Dependencies dependencies
Definition: package.h:49
The standard interface for ASC streams. This is the parent class for all kinds of streams: normal fil...
void read(tnstream &stream)
Definition: package.cpp:28