#ifndef __StockInfo_h_ #define __StockInfo_h_ /* This is a fairly simple data structure used as an interface between the * different data sources and filters. */ #include #include struct StockInfo { std::string symbol; time_t closeDate; double dollarVolume; StockInfo() : closeDate(0), dollarVolume(0.0) { } }; typedef std::vector< StockInfo > StockInfoList; // This will read a list of symbols from a simple text file. // One symbol per line. // This routine takes care of removing whitespace. // The result is put into out. // out is overwritten by the new value. // Error messages are sent to the simple log file. void readFromTextFile(std::string const &fileName, StockInfoList &out); #endif