Collapse All

Anypia Programmer's Documentation |  |

PiaReadAny::setEarnProjectYears Method
PiaReadAny Class PiaReadAny Members PiaReadAny Methods Send Feedback

Sets the years in the EarnProject class.

C++

    void setEarnProjectYears(
        int year1,
        int year2
    );

Parameters

Parameters | Description
int year1 | The first year of earnings.
int year2 | The last year of earnings.

Remarks

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

Exceptions

Exceptions | Description
PiaException | 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.

Group

PiaReadAny Methods

Links
PiaReadAny Class, PiaReadAny Members, PiaReadAny Methods

Copyright (c) 2010. All rights reserved.
Contents | Index | Home
What do you think about this topic? Send feedback!