1 |
douglas |
260 |
// Vance Thrift and Biller File Utility 2 |
2 |
|
|
// |
3 |
|
|
// Douglas Thrift |
4 |
|
|
// |
5 |
douglas |
271 |
// $Id: IndividualClient.h,v 1.5 2003/08/20 05:49:34 douglas Exp $ |
6 |
douglas |
260 |
|
7 |
|
|
#ifndef _IndividualClient_h_ |
8 |
|
|
#define _IndividualClient_h_ |
9 |
|
|
|
10 |
douglas |
265 |
#include "VTBFileUtil2.h" |
11 |
douglas |
260 |
|
12 |
|
|
class IndividualClient |
13 |
|
|
{ |
14 |
|
|
private: |
15 |
douglas |
265 |
unsigned number; |
16 |
|
|
string name; |
17 |
|
|
string file; |
18 |
douglas |
271 |
static string extension; |
19 |
douglas |
267 |
void lowercase(string& word) { for (unsigned index = 0; index < |
20 |
|
|
word.length(); index++) word[index] = tolower(word[index]); } |
21 |
douglas |
265 |
void demunge(void); |
22 |
|
|
string demunge(const string& munged); |
23 |
douglas |
266 |
void capitalize(string& word, unsigned index = 0, unsigned count = 1); |
24 |
douglas |
260 |
public: |
25 |
douglas |
265 |
IndividualClient() { number = 0; } |
26 |
|
|
~IndividualClient() {} |
27 |
|
|
unsigned getNumber(void); |
28 |
|
|
string getName(void); |
29 |
|
|
string getFile(void); |
30 |
douglas |
271 |
static string getExtension(void) { return extension; } |
31 |
douglas |
265 |
void setNumber(unsigned number); |
32 |
|
|
void setName(const string& name); |
33 |
|
|
void setFile(const string& file); |
34 |
douglas |
271 |
static void setExtension(const string& extension) { |
35 |
|
|
IndividualClient::extension = extension; } |
36 |
douglas |
260 |
}; |
37 |
|
|
|
38 |
|
|
#endif // _IndividualClient_h_ |