input.h File Reference

#include <iostream>
#include "arrutil.h"

Include dependency graph for input.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

template<typename ItemType>
ItemType get_bounded_both (ItemType lower, ItemType upper, std::istream &read_from=std::cin, const char prompt[]="Enter value: ", bool supress=false, const char errmsg[]="Invalid -- try again!\n")
template<typename ItemType>
ItemType get_bounded_upper (ItemType upper, std::istream &read_from=std::cin, const char prompt[]="Enter value: ", bool supress=false, const char errmsg[]="Invalid -- try again!\n")
template<typename ItemType>
ItemType get_bounded_lower (ItemType lower, std::istream &read_from=std::cin, const char prompt[]="Enter value: ", bool supress=false, const char errmsg[]="Invalid -- try again!\n")
char get_in_set (const char valid[]="YyNn", const char prompt[]="Would you like to quit? ", const char errmsg[]="Invalid response! Choose Yes or No!\n")


Function Documentation

template<typename ItemType>
ItemType get_bounded_both ( ItemType  lower,
ItemType  upper,
std::istream &  read_from = std::cin,
const char  prompt[] = "Enter value:  ",
bool  supress = false,
const char  errmsg[] = "Invalid -- try again!\n" 
) [inline]

Definition at line 8 of file input.h.

template<typename ItemType>
ItemType get_bounded_lower ( ItemType  lower,
std::istream &  read_from = std::cin,
const char  prompt[] = "Enter value:  ",
bool  supress = false,
const char  errmsg[] = "Invalid -- try again!\n" 
) [inline]

Definition at line 68 of file input.h.

Here is the caller graph for this function:

template<typename ItemType>
ItemType get_bounded_upper ( ItemType  upper,
std::istream &  read_from = std::cin,
const char  prompt[] = "Enter value:  ",
bool  supress = false,
const char  errmsg[] = "Invalid -- try again!\n" 
) [inline]

Definition at line 38 of file input.h.

char get_in_set ( const char  valid[] = "YyNn",
const char  prompt[] = "Would you like to quit?  ",
const char  errmsg[] = "Invalid response!  Choose Yes or No!\n" 
)

Definition at line 8 of file input.C.

Here is the caller graph for this function:


Generated on Thu Oct 22 13:36:16 2009 for EmployeeInheritanceExample by  doxygen 1.5.5