Main Page | Class Hierarchy | Compound List | File List | Compound Members | File Members

testresult.h

Go to the documentation of this file.
00001 /*
00002  * Class TestResult
00003  *
00004  */
00005 
00006 #ifndef TESTRESULT_H
00007 #define TESTRESULT_H
00008 #include "card.h"
00009 
00010 /*
00011  * class TestResult
00012  *
00013  * This class stores a any information found in the card database
00014  * about a type of card, (ie account number, expire, etc)
00015  * This ios the class returned by the db after a search
00016  * if a match was found, numFields >=1 and the members will
00017  * be populated
00018  */
00019 
00020 typedef std::vector<char *> stringVec;
00021 typedef std::vector<int> intVec;
00022 
00023 class TestResult {
00024 public:
00025         TestResult();         // Default constructor
00026         void setCardType(char * s);
00027         void setNotes(char *s);
00028         void setUnknowns(char *s);
00029 
00030         void addTag(char * s, char * t);
00031         void addExtraTag(char *s);
00032 
00033         char * getNameTag(int i);
00034         char * getDataTag(int i);
00035         char * getExtraTag(int i);
00036 
00037         char * getCardType(void);
00038         char * getNotes(void) const;
00039         char * getUnknowns(void) const; 
00040         int getNumTags(void) const;
00041         int getNumExtraTags(void) const;
00042         
00043         bool isValid(void) const;
00044 
00045 private:
00046         bool tagExists(char * n) const;
00047         
00048 private:
00049         char * cardType;
00050 
00051         stringVec nameTags;
00052         stringVec dataTags;
00053         stringVec extraTags;
00054         intVec freq;
00055         
00056         char * notes;
00057         char * unknowns;        
00058         bool valid;
00059 
00060 };
00061 #endif

Generated on Thu Apr 7 01:55:47 2005 for StripeSnoop by doxygen 1.3.3