1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
#include "StdAfx.h"
#include "QuotesProviderVisitorFormatSpecificator.h"
CQuotesProviderVisitorFormatSpecificator::CQuotesProviderVisitorFormatSpecificator()
{
}
CQuotesProviderVisitorFormatSpecificator::~CQuotesProviderVisitorFormatSpecificator()
{
}
void CQuotesProviderVisitorFormatSpecificator::Visit(const CQuotesProviderDukasCopy&/* rProvider*/)
{
m_aSpecificators.push_back(CFormatSpecificator(_T("%s"),TranslateT("Quote Symbol")));
m_aSpecificators.push_back(CFormatSpecificator(_T("%d"),TranslateT("Quote Name")));
}
void CQuotesProviderVisitorFormatSpecificator::Visit(const CQuotesProviderGoogle&/* rProvider*/)
{
m_aSpecificators.push_back(CFormatSpecificator(_T("%F"),TranslateT("From Currency Full Name")));
m_aSpecificators.push_back(CFormatSpecificator(_T("%f"),TranslateT("From Currency Short Name")));
m_aSpecificators.push_back(CFormatSpecificator(_T("%I"),TranslateT("Into Currency Full Name")));
m_aSpecificators.push_back(CFormatSpecificator(_T("%i"),TranslateT("Into Currency Short Name")));
m_aSpecificators.push_back(CFormatSpecificator(_T("%s"),TranslateT("Short notation for \"%f/%i\"")));
}
void CQuotesProviderVisitorFormatSpecificator::Visit(const CQuotesProviderBase&/* rProvider*/)
{
m_aSpecificators.push_back(CFormatSpecificator(_T("%S"),TranslateT("Source of Information")));
m_aSpecificators.push_back(CFormatSpecificator(_T("%r"),TranslateT("Rate Value")));
m_aSpecificators.push_back(CFormatSpecificator(_T("%p"),TranslateT("Previous Rate Value")));
m_aSpecificators.push_back(CFormatSpecificator(_T("%X"),TranslateT("Fetch Time")));
m_aSpecificators.push_back(CFormatSpecificator(_T("%x"),TranslateT("Fetch Date")));
m_aSpecificators.push_back(CFormatSpecificator(_T("%t"),TranslateT("Fetch Time and Date")));
m_aSpecificators.push_back(CFormatSpecificator(_T("\\%"),TranslateT("Percentage Character (%)")));
m_aSpecificators.push_back(CFormatSpecificator(_T("\\t"),TranslateT("Tabulation")));
m_aSpecificators.push_back(CFormatSpecificator(_T("\\\\"),TranslateT("Left slash (\\)")));
}
void CQuotesProviderVisitorFormatSpecificator::Visit(const CQuotesProviderGoogleFinance&/* rProvider*/)
{
m_aSpecificators.push_back(CFormatSpecificator(_T("%s"),TranslateT("Quote Symbol")));
m_aSpecificators.push_back(CFormatSpecificator(_T("%n"),TranslateT("Quote Name")));
m_aSpecificators.push_back(CFormatSpecificator(_T("%o"),TranslateT("Open Price")));
m_aSpecificators.push_back(CFormatSpecificator(_T("%d"),TranslateT("Percent Change to After Hours")));
m_aSpecificators.push_back(CFormatSpecificator(_T("%y"),TranslateT("Percent Change to Yesterday Close")));
}
const CQuotesProviderVisitorFormatSpecificator::TFormatSpecificators& CQuotesProviderVisitorFormatSpecificator::GetSpecificators()const
{
return m_aSpecificators;
}
void CQuotesProviderVisitorFormatSpecificator::Visit(const CQuotesProviderYahoo& rProvider)
{
m_aSpecificators.push_back(CFormatSpecificator(_T("%s"),TranslateT("Quote Symbol")));
m_aSpecificators.push_back(CFormatSpecificator(_T("%n"),TranslateT("Quote Name")));
m_aSpecificators.push_back(CFormatSpecificator(_T("%o"),TranslateT("Open Price")));
m_aSpecificators.push_back(CFormatSpecificator(_T("%h"),TranslateT("Day's High")));
m_aSpecificators.push_back(CFormatSpecificator(_T("%g"),TranslateT("Day's Low")));
m_aSpecificators.push_back(CFormatSpecificator(_T("%P"),TranslateT("Previous Close")));
m_aSpecificators.push_back(CFormatSpecificator(_T("%c"),TranslateT("Change")));
}
|