Anypia Programmer's Documentation
ContentsIndexHome
PreviousUpNext
PiaReadAny::setEarnProjectYears Method

Sets the years in the EarnProject class.

C++
void setEarnProjectYears(
    int year1, 
    int year2
);
Parameters 
Description 
int year1 
The first year of earnings. 
int year2 
The last year of earnings. 

Sets the first and last years, then checks them by calling EarnProject::yearsCheck.

Exceptions 
Description 
PiaException of type PIA_IDS_END1 if first year of earnings in forward projection period is before last year of earnings in backward projection period; of type PIA_IDS_END3 if first year of earnings in forward projection period is after last year of earnings in forward projection period; of type PIA_IDS_END4 if the total number of years of earnings is greater than the maximum allowed (MAXYRS); of type PIA_IDS_END1 if last year of earnings is before 1937; of type PIA_IDS_END2 if last year of earnings is after maximum year allowed. 
Copyright (c) 2010. All rights reserved.
What do you think about this topic? Send feedback!