////////////////////////////////////////////////////////////////////////// PrintFCO //////////////////////////////////////////////////////////////////////////
| 145 | // PrintFCO |
| 146 | /////////////////////////////////////////////////////////////////////////////// |
| 147 | static void PrintFCO(const iFCO* pFCO, const iFCOPropDisplayer* pDisplayer) |
| 148 | { |
| 149 | TCOUT.setf(std::ios::left); |
| 150 | |
| 151 | TCOUT << _T("------- ") << iTWFactory::GetInstance()->GetNameTranslator()->ToStringDisplay(pFCO->GetName()) |
| 152 | << _T(" -------") << std::endl; |
| 153 | // |
| 154 | // iterate over all of the properties |
| 155 | // |
| 156 | const iFCOPropSet* pPropSet = pFCO->GetPropSet(); |
| 157 | cFCOPropVector v = pPropSet->GetValidVector(); |
| 158 | for (int i = 0; i < pPropSet->GetNumProps(); i++) |
| 159 | { |
| 160 | if (v.ContainsItem(i)) |
| 161 | { |
| 162 | TCOUT << _T("["); |
| 163 | TCOUT.width(2); |
| 164 | TCOUT << i << _T("]"); |
| 165 | TCOUT.width(25); |
| 166 | TCOUT << pPropSet->GetPropName(i); |
| 167 | TCOUT.width(0); |
| 168 | TCOUT << pDisplayer->PropAsString(pFCO, i) << std::endl; |
| 169 | } |
| 170 | } |
| 171 | TCOUT << _T("--------------------------------------------") << std::endl; |
| 172 | } |
| 173 | |
| 174 | static void SplitString(const TSTRING& str, TCHAR c, std::vector<TSTRING>& vStrings) |
| 175 | { |
no test coverage detected