#include <InterestFrequency.h>
Public Member Functions | |
| const std::string & | getName (void) const |
| Get the name of this InterestFrequency. | |
| int | getValue (void) const |
| Get the number of periods per year. | |
Static Public Member Functions | |
| static const InterestFrequency * | getByValue (int value) |
| Get a pointer to an InterestFrequency for the given value ( periods per year ). | |
Static Public Attributes | |
| static InterestFrequency | ANNUAL |
| Static Annual InterestFrequency ( 1 ). | |
| static InterestFrequency | SEMI_ANNUAL |
| Static Semi Annual InterestFrequency ( 2 ). | |
| static InterestFrequency | QUARTERLY |
| Static Quarterly InterestFrequency ( 4 ). | |
| static InterestFrequency | MONTHLY |
| Static Quarterly InterestFrequency ( 12 ). | |
Private Member Functions | |
| InterestFrequency (const std::string &name, int value) | |
| ~InterestFrequency (void) | |
Private Attributes | |
| std::string | name |
| int | value |
| com::ftlabs::fisa::InterestFrequency::InterestFrequency | ( | const std::string & | name, | |
| int | value | |||
| ) | [private] |
| com::ftlabs::fisa::InterestFrequency::~InterestFrequency | ( | void | ) | [private] |
| static const InterestFrequency* com::ftlabs::fisa::InterestFrequency::getByValue | ( | int | value | ) | [static] |
Get a pointer to an InterestFrequency for the given value ( periods per year ).
The pointer returned references one of the static instances managed by InterestFrequency and must not be deleted.
| value | the number of periods per year. |
| const std::string& com::ftlabs::fisa::InterestFrequency::getName | ( | void | ) | const |
| int com::ftlabs::fisa::InterestFrequency::getValue | ( | void | ) | const |
Get the number of periods per year.
Static Annual InterestFrequency ( 1 ).
Static Semi Annual InterestFrequency ( 2 ).
Static Quarterly InterestFrequency ( 4 ).
Static Quarterly InterestFrequency ( 12 ).
std::string com::ftlabs::fisa::InterestFrequency::name [private] |
int com::ftlabs::fisa::InterestFrequency::value [private] |
1.5.2