選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

ScReader.hxx 739B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. //
  2. // Created by robin on 6/28/15.
  3. //
  4. #include <reader.h>
  5. ScReader::ScReader(std::string name)
  6. : _name(name)
  7. , _card(nullptr)
  8. , _proto(nullptr)
  9. {
  10. }
  11. const std::string ScReader::getName() const
  12. {
  13. return _name;
  14. }
  15. LONG ScReader::getLastStaticResult()
  16. {
  17. return _lastStaticResult;
  18. }
  19. LONG ScReader::getLastResult()
  20. {
  21. return _lastResult;
  22. }
  23. std::string ScReader::getAtr()
  24. {
  25. return getAttribute(SCARD_ATTR_ATR_STRING);
  26. }
  27. std::string ScReader::getResultString(const LONG& error)
  28. {
  29. return pcsc_stringify_error(error);
  30. }
  31. std::string ScReader::getLastStaticResultString()
  32. {
  33. return getResultString(_lastStaticResult);
  34. }
  35. std::string ScReader::getLastResultString()
  36. {
  37. return getResultString(_lastResult);
  38. }