/////////////////////////////////////////////////////// Desc: Generic function to grab a string from an array. purpose of this function is just to add error checking. ///////////////////////////////////////////////////////
| 232 | // checking. |
| 233 | //////////////////////////////////////////////////////////// |
| 234 | std::string CNetworkAdapter::GetStringFromArray(const StringArray* pPtr, int nIndex) const |
| 235 | { |
| 236 | std::string sStr = ""; |
| 237 | if (pPtr && ((SIZE_T)nIndex < pPtr->size())) |
| 238 | { |
| 239 | sStr = (*pPtr)[nIndex]; |
| 240 | } |
| 241 | |
| 242 | return sStr; |
| 243 | } |
| 244 | |
| 245 | //////////////////////////////////////////////////////////// |
| 246 | // Desc: |