Python_2  1.0
Public Member Functions | Public Attributes | List of all members
_01d_Agenda.personalData Class Reference

Class for aggregating all personal data in a single object. More...

Public Member Functions

def __init__ (self, listOfPhones=None, addr='')
 Constructor from a phone list and an address. More...
 
def getlPhone (self)
 Returns the phone list of this contact. More...
 
def getAddress (self)
 Returns the address of this contact. More...
 
def setAddress (self, addr)
 Sets the address of this contact. More...
 
def setlPhone (self, l)
 Appends a phone list to this contact phone list. More...
 
def __eq__ (self, other)
 Compares two personal data. More...
 
def __repr__ (self)
 Used to print a human readable presentation of an object. More...
 
def __str__ (self)
 Used to print a human readable presentation of an object. More...
 

Public Attributes

 lPhone
 Contact phone list. More...
 
 address
 Contact address. More...
 

Detailed Description

Class for aggregating all personal data in a single object.

Constructor & Destructor Documentation

◆ __init__()

def _01d_Agenda.personalData.__init__ (   self,
  listOfPhones = None,
  addr = '' 
)

Constructor from a phone list and an address.

Parameters
listOfPhonesphone list.
addraddress.

Member Function Documentation

◆ __eq__()

def _01d_Agenda.personalData.__eq__ (   self,
  other 
)

Compares two personal data.

References _01d_Agenda.personalData.address, and _01d_Agenda.personalData.lPhone.

◆ __repr__()

def _01d_Agenda.personalData.__repr__ (   self)

Used to print a human readable presentation of an object.

In this case, it prints the contact name and his personal data.

Returns
a string.

References _01d_Agenda.personalData.address, and _01d_Agenda.personalData.lPhone.

◆ __str__()

def _01d_Agenda.personalData.__str__ (   self)

Used to print a human readable presentation of an object.

In this case, it prints the contact name and his personal data.

Returns
a multi line string.

References _01d_Agenda.personalData.address, and _01d_Agenda.personalData.lPhone.

◆ getAddress()

def _01d_Agenda.personalData.getAddress (   self)

Returns the address of this contact.

Returns
the contact address.

References _01d_Agenda.personalData.address.

◆ getlPhone()

def _01d_Agenda.personalData.getlPhone (   self)

Returns the phone list of this contact.

Returns
the contact phone list.

References _01d_Agenda.personalData.lPhone.

◆ setAddress()

def _01d_Agenda.personalData.setAddress (   self,
  addr 
)

Sets the address of this contact.

Parameters
addrthe contact address.

◆ setlPhone()

def _01d_Agenda.personalData.setlPhone (   self,
  l 
)

Appends a phone list to this contact phone list.

Parameters
la phone list.

References _01d_Agenda.personalData.lPhone.

Member Data Documentation

◆ address

_01d_Agenda.personalData.address

◆ lPhone

_01d_Agenda.personalData.lPhone

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