Skip to content

Commit

Permalink
Introduce Package and PackageGroup classes
Browse files Browse the repository at this point in the history
  • Loading branch information
rakhimov committed Oct 21, 2016
1 parent 7a36fc3 commit 2c277a1
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions cppdep.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,42 @@ def __str__(self):
return self.name


class Package(object):
"""A collection of components.
Attributes:
name: The unique identifier name of the package.
components: The list of unique components in this package.
"""

def __init__(self, name):
"""Constructs an empty package.
Args:
name: A unique identifier string.
"""
self.name = name
self.components = []


class PackageGroup(object):
"""A collection of packages.
Attributes:
name: The unique name of the package group.
packages: {package_name: package} belonging to this group.
"""

def __init__(self, name):
"""Constructs an empty group.
Atgs:
name: A unique identifier string.
"""
self.name = name
self.packages = {}


class IncompleteComponents(object):
"""A collection of unpaired header or source files."""

Expand Down

0 comments on commit 2c277a1

Please sign in to comment.