0% found this document useful (0 votes)
55 views1 page

Persontype H

This document contains C++ code defining an extPersonType class. The class contains private member variables including a personType object, dateType, addressType, and string variables for association, phone. Public member functions are defined to set and get the private member variables, including functions to set and get the entire extPersonType object. The class utilizes header files for I/O, strings, and references an external personType header.

Uploaded by

api-346895508
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
55 views1 page

Persontype H

This document contains C++ code defining an extPersonType class. The class contains private member variables including a personType object, dateType, addressType, and string variables for association, phone. Public member functions are defined to set and get the private member variables, including functions to set and get the entire extPersonType object. The class utilizes header files for I/O, strings, and references an external personType header.

Uploaded by

api-346895508
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
You are on page 1/ 1

//preprocessor directives & headers.

#ifndef H_extPersonType
#define H_extPersonType
#include <iostream> //utilized to instate basic I/O functionality.
#include <string> //implemented to utilize string datatype.
#include <iomanip> //Required to use various useful manipulators.
#include <fstream> //Required for input/output file processing.
#include "personType.h" //references external header file.

//standard library
using namespace std; //allows the use of cout & endl without 'std::' prefix.

class extPersonType{
public:
void print() const;
void setBirthDate(const dateType);
void getBirthDate(dateType&) const;
void setAddress(const addressType address);
void getAddress(addressType& address) const;
void setPerson(const string, const string);
void getPerson(string&, string&) const;
void setAssociation(const string);
string getAssociation() const;
void setPhone(const string);
string getPhone() const;
void setExtPerson(string, string, int, int, int, string, string, string, int, string, string);
extPersonType(string = "", string = "", int = 1, int = 1, int = 1900, string = "", string = "",
string = "", int = 0, string = "", string = "");

private:
personType person;
dateType birthDate;
addressType myAddress;
string association;
string phone;
};

#endif /* extPersonType_h */

You might also like