Package Class Reference

#include <package.h>

List of all members.

Public Types

typedef vector< PackageDependencyDependencies
 the given packages must be present to use this package

Public Member Functions

void read (tnstream &stream)
void write (tnstream &stream) const
void runTextIO (PropertyContainer &pc)

Public Attributes

ASCString name
ASCString description
ASCString updateUrl
VersionIdentifier version
Dependencies dependencies
ASCString archive
 the archive in which the package is stored
ASCString location

Classes

class  PackageDependency


Detailed Description

Definition at line 30 of file package.h.


Member Typedef Documentation

typedef vector<PackageDependency> Package::Dependencies

the given packages must be present to use this package

Definition at line 48 of file package.h.


Member Function Documentation

void Package::read ( tnstream stream  ) 

Definition at line 28 of file package.cpp.

References archive, dependencies, description, name, packageStreamVersion, VersionIdentifier::read(), readClassContainer(), tnstream::readInt(), tnstream::readString(), updateUrl, and version.

Referenced by PackageData::read().

void Package::write ( tnstream stream  )  const

Definition at line 46 of file package.cpp.

References archive, dependencies, description, name, packageStreamVersion, updateUrl, version, VersionIdentifier::write(), writeClassContainer(), tnstream::writeInt(), and tnstream::writeString().

void Package::runTextIO ( PropertyContainer pc  ) 

Definition at line 60 of file package.cpp.

References PropertyContainer::addInteger(), PropertyContainer::addString(), archive, PropertyContainer::closeBracket(), dependencies, description, VersionIdentifier::fromString(), PropertyContainer::getArchive(), PropertyContainer::getLocation(), PropertyContainer::isReading(), location, name, PropertyContainer::openBracket(), ASCString::toString(), VersionIdentifier::toString(), updateUrl, and version.

Referenced by PackageRepository::readTextFiles().


Member Data Documentation

ASCString Package::name

Definition at line 41 of file package.h.

Referenced by PackageRepository::checkPackageDependency(), read(), runTextIO(), and write().

ASCString Package::description

Definition at line 42 of file package.h.

Referenced by read(), runTextIO(), and write().

ASCString Package::updateUrl

Definition at line 43 of file package.h.

Referenced by read(), runTextIO(), and write().

VersionIdentifier Package::version

Definition at line 45 of file package.h.

Referenced by read(), runTextIO(), and write().

Dependencies Package::dependencies

Definition at line 49 of file package.h.

Referenced by PackageRepository::checkPackageDependency(), read(), runTextIO(), and write().

ASCString Package::archive

the archive in which the package is stored

Definition at line 52 of file package.h.

Referenced by read(), runTextIO(), and write().

ASCString Package::location

Definition at line 54 of file package.h.

Referenced by runTextIO().


The documentation for this class was generated from the following files:
Generated on Mon May 21 01:47:10 2012 for Advanced Strategic Command by  doxygen 1.5.1