InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ChartCSVFile.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Adobe Developer Technologies
6 //
7 // $Author$
8 //
9 // $DateTime$
10 //
11 // $Revision$
12 //
13 // $Change$
14 //
15 // Copyright 1997-2010 Adobe Systems Incorporated. All rights reserved.
16 //
17 // NOTICE: Adobe permits you to use, modify, and distribute this file in accordance
18 // with the terms of the Adobe license agreement accompanying it. If you have received
19 // this file from a source other than Adobe, then your use, modification, or
20 // distribution of it requires the prior written permission of Adobe.
21 //
22 //========================================================================================
23 
24 #ifndef __ChartCSVFile_h__
25 #define __ChartCSVFile_h__
26 
27 // Interface includes:
28 #include "ICdlChartData.h"
29 #include "PMString.h"
30 
31 // Forward declarations:
32 class IPMStream;
33 
40 {
41 public:
42 
49  static bool16 LoadFile(IDFile& inFile, PMString& outName, CdlStockChartData& outChartData);
50 
56  static bool16 ReadFile(IDFile& inFile, CdlStockChartData& outChartData);
57 
58 private:
59 
63  static void RemoveLF(IPMStream* inStream);
64 
70  static bool16 ReadLine(IPMStream* inStream, PMString& outStr);
71 
76  static bool16 ReadHeader(IPMStream* inStream);
77 
83  static bool16 ReadDate(IPMStream* inStream, PMString& outDate);
84 
90  static bool16 ReadDouble(IPMStream* inStream, double& outValue);
91 
97  static bool16 ReadData(IPMStream* inStream, CdlStockData& outStockData);
98 };
99 
100 #endif // __ChartCSVFile_h__
101