UnisynIndex.h 462 B

123456789101112131415161718192021222324252627
  1. #ifndef SEKAI_UNISYN_INDEX_H
  2. #define SEKAI_TRACK_H
  3. #include <sekai/common.h>
  4. #include <map>
  5. #include <string>
  6. #include <vector>
  7. struct PhoInfo {
  8. std::string basename;
  9. std::vector<float> alignment;
  10. };
  11. class UnisynIndex {
  12. private:
  13. std::map<std::string, std::string> headerMap;
  14. std::map<std::string, PhoInfo> phoMap;
  15. public:
  16. bool readFromFile(std::string fileName);
  17. inline PhoInfo getPho(std::string pho) {
  18. return phoMap[pho];
  19. }
  20. };
  21. #endif