MiKTeX 26.5-next
A scalable TeX distribution
Loading...
Searching...
No Matches
MiKTeX::Packages::PackageInfo Struct Reference

Package record. More...

#include <miktex/PackageManager/PackageInfo.h>

Collaboration diagram for MiKTeX::Packages::PackageInfo:

Public Member Functions

unsigned long GetRefCount () const
 Gets the number of dependents.
unsigned long GetNumFiles () const
std::size_t GetSize () const
std::time_t GetTimeInstalled () const
 Gets the time, the package was installed.
bool IsContained () const
 Checks to see if this package has dependents.
bool IsContainer () const
 Tests for a container package.
bool IsInstalled () const
 Checks to see whether the package is installed.
bool IsInstalled (MiKTeX::Core::ConfigurationScope scope) const
 Checks to see whether the package is installed in the specified scope.
bool IsPureContainer () const
void SetTimeInstalled (std::time_t timeInstalled, MiKTeX::Core::ConfigurationScope scope)
 Gets the time, the package was installed.

Public Attributes

std::size_t archiveFileSize = 0
 Size of the archive file.
std::string copyrightOwner
 The copyright owner of the package.
std::string copyrightYear
 Copyright year.
std::string creator
 Name of creator (packer).
std::string ctanPath
 Relative path to the package directory on a CTAN mirror.
std::string description
 Multi-line package description.
MiKTeX::Core::MD5 digest
 MD5 of the package.
std::string displayName
 Display name.
std::string id
 Package ID.
bool isObsolete = false
 true, if the package is obsolete.
bool isRemovable = false
 true, if the package can be removed.
std::vector< std::string > docFiles
 The doc file list.
std::string licenseType
 The license type of the package.
std::string minTargetSystemVersion
 The minimum required target system version.
RepositoryReleaseState releaseState = RepositoryReleaseState::Unknown
 The release state of the package.
std::vector< std::string > requiredBy
 List of dependents.
std::vector< std::string > requiredPackages
 List of required packages.
std::vector< std::string > runFiles
 The run file list.
std::size_t sizeDocFiles = 0
 Total size of all doc files.
std::size_t sizeSourceFiles = 0
 Total size of all source files.
std::size_t sizeRunFiles = 0
 Total size of all run files.
std::vector< std::string > sourceFiles
 The source file list.
std::string targetSystem
 Target system.
std::time_t timeInstalledCommon = InvalidTimeT
 Date/time when the package was installed in the common scope.
std::time_t timeInstalledUser = InvalidTimeT
 Date/time when the package was installed in the user scope..
std::time_t timePackaged = InvalidTimeT
 Date/time when the package was created.
std::string title
 One-line package description.
std::string version
 Informal version information.
std::string versionDate
 The version/date of the package.

Detailed Description

Package record.

Member Function Documentation

◆ GetNumFiles()

unsigned long MiKTeX::Packages::PackageInfo::GetNumFiles ( ) const
inline

Gets the total number of files in the package.

Returns
Returns the number of files.

◆ GetRefCount()

unsigned long MiKTeX::Packages::PackageInfo::GetRefCount ( ) const
inline

Gets the number of dependents.

◆ GetSize()

std::size_t MiKTeX::Packages::PackageInfo::GetSize ( ) const
inline

Gets the total size (in bytes) of all files in the package.

Returns
Returns the package size.

◆ GetTimeInstalled()

std::time_t MiKTeX::Packages::PackageInfo::GetTimeInstalled ( ) const
inline

Gets the time, the package was installed.

◆ IsContained()

bool MiKTeX::Packages::PackageInfo::IsContained ( ) const
inline

Checks to see if this package has dependents.

◆ IsContainer()

bool MiKTeX::Packages::PackageInfo::IsContainer ( ) const
inline

Tests for a container package.

◆ IsInstalled() [1/2]

bool MiKTeX::Packages::PackageInfo::IsInstalled ( ) const
inline

Checks to see whether the package is installed.

◆ IsInstalled() [2/2]

bool MiKTeX::Packages::PackageInfo::IsInstalled ( MiKTeX::Core::ConfigurationScope scope) const
inline

Checks to see whether the package is installed in the specified scope.

◆ IsPureContainer()

bool MiKTeX::Packages::PackageInfo::IsPureContainer ( ) const
inline

Tests for a pure container package.

Returns
Returns true, if this is a pure container package.

◆ SetTimeInstalled()

void MiKTeX::Packages::PackageInfo::SetTimeInstalled ( std::time_t timeInstalled,
MiKTeX::Core::ConfigurationScope scope )
inline

Gets the time, the package was installed.

Member Data Documentation

◆ archiveFileSize

std::size_t MiKTeX::Packages::PackageInfo::archiveFileSize = 0

Size of the archive file.

◆ copyrightOwner

std::string MiKTeX::Packages::PackageInfo::copyrightOwner

The copyright owner of the package.

◆ copyrightYear

std::string MiKTeX::Packages::PackageInfo::copyrightYear

Copyright year.

◆ creator

std::string MiKTeX::Packages::PackageInfo::creator

Name of creator (packer).

◆ ctanPath

std::string MiKTeX::Packages::PackageInfo::ctanPath

Relative path to the package directory on a CTAN mirror.

◆ description

std::string MiKTeX::Packages::PackageInfo::description

Multi-line package description.

◆ digest

MiKTeX::Core::MD5 MiKTeX::Packages::PackageInfo::digest

MD5 of the package.

◆ displayName

std::string MiKTeX::Packages::PackageInfo::displayName

Display name.

◆ docFiles

std::vector<std::string> MiKTeX::Packages::PackageInfo::docFiles

The doc file list.

◆ id

std::string MiKTeX::Packages::PackageInfo::id

Package ID.

◆ isObsolete

bool MiKTeX::Packages::PackageInfo::isObsolete = false

true, if the package is obsolete.

◆ isRemovable

bool MiKTeX::Packages::PackageInfo::isRemovable = false

true, if the package can be removed.

◆ licenseType

std::string MiKTeX::Packages::PackageInfo::licenseType

The license type of the package.

◆ minTargetSystemVersion

std::string MiKTeX::Packages::PackageInfo::minTargetSystemVersion

The minimum required target system version.

◆ releaseState

RepositoryReleaseState MiKTeX::Packages::PackageInfo::releaseState = RepositoryReleaseState::Unknown

The release state of the package.

◆ requiredBy

std::vector<std::string> MiKTeX::Packages::PackageInfo::requiredBy

List of dependents.

◆ requiredPackages

std::vector<std::string> MiKTeX::Packages::PackageInfo::requiredPackages

List of required packages.

◆ runFiles

std::vector<std::string> MiKTeX::Packages::PackageInfo::runFiles

The run file list.

◆ sizeDocFiles

std::size_t MiKTeX::Packages::PackageInfo::sizeDocFiles = 0

Total size of all doc files.

◆ sizeRunFiles

std::size_t MiKTeX::Packages::PackageInfo::sizeRunFiles = 0

Total size of all run files.

◆ sizeSourceFiles

std::size_t MiKTeX::Packages::PackageInfo::sizeSourceFiles = 0

Total size of all source files.

◆ sourceFiles

std::vector<std::string> MiKTeX::Packages::PackageInfo::sourceFiles

The source file list.

◆ targetSystem

std::string MiKTeX::Packages::PackageInfo::targetSystem

Target system.

◆ timeInstalledCommon

std::time_t MiKTeX::Packages::PackageInfo::timeInstalledCommon = InvalidTimeT

Date/time when the package was installed in the common scope.

◆ timeInstalledUser

std::time_t MiKTeX::Packages::PackageInfo::timeInstalledUser = InvalidTimeT

Date/time when the package was installed in the user scope..

◆ timePackaged

std::time_t MiKTeX::Packages::PackageInfo::timePackaged = InvalidTimeT

Date/time when the package was created.

◆ title

std::string MiKTeX::Packages::PackageInfo::title

One-line package description.

◆ version

std::string MiKTeX::Packages::PackageInfo::version

Informal version information.

◆ versionDate

std::string MiKTeX::Packages::PackageInfo::versionDate

The version/date of the package.


The documentation for this struct was generated from the following file: