Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

MainClass.h 1.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. //
  2. // Created by robin on 8/8/15.
  3. //
  4. #ifndef PDNS_SLAVE_MAINCLASS_H
  5. #define PDNS_SLAVE_MAINCLASS_H
  6. #include <memory>
  7. #include <Business/FreeFareTagBusiness.h>
  8. #include <Business/NfcDeviceBusiness.h>
  9. class MainClass {
  10. public:
  11. MainClass(int argc, char* argv[]);
  12. int main();
  13. std::shared_ptr<NfcDeviceBusiness> getDevice(const std::string& deviceName, std::vector<std::shared_ptr<NfcDeviceBusiness>> devices);
  14. std::shared_ptr<FreeFareTagBusiness> getTag(const std::string& tagUid, std::vector<std::shared_ptr<FreeFareTagBusiness>> tags);
  15. int mapKeys(std::shared_ptr<FreeFareTagBusiness> tag, std::vector<std::string> keys);
  16. int dump(std::shared_ptr<FreeFareTagBusiness> tag, std::vector<std::string> keys);
  17. Result<std::vector<std::string>> readFile(const std::string& filePath);
  18. void printBlockAccessBits(const AccessBitsDbo& accessBits, int block);
  19. void printTrailerAccessBits(const AccessBitsDbo& accessBits);
  20. void printVersion() const;
  21. static void printPercent(int done, int total, const std::string& header);
  22. static void printPercentMapKeys(int done, int total);
  23. static void printPercentDump(int done, int total);
  24. private:
  25. int _argc;
  26. char** _argv;
  27. };
  28. #endif //PDNS_SLAVE_MAINCLASS_H