SchemaLoader.h 1.1 KB

123456789101112131415161718192021222324
  1. #pragma once
  2. #include "..\Identifier\schema_struct.h"
  3. #include "basic_struct_result.h"
  4. #include "..\Schema\schema_struct.h"
  5. #include "..\Identifier\OnLineCardSchemaStruct.h"
  6. #include <boost\smart_ptr.hpp>
  7. using namespace std;
  8. using namespace identify::schema;
  9. class CSchemaLoader
  10. {
  11. public:
  12. CSchemaLoader(void);
  13. ~CSchemaLoader(void);
  14. // ¼ÓÔØÄ£°åÐÅÏ¢
  15. int Load(std::string fileName, std::string muban_img_dir, schema::SCHEMA& schema_schema, boost::shared_ptr<const ISCH_Schema> & schema_identify, boost::shared_ptr<const HANDLE_INFO>& handleInfos);
  16. template<class T, class T2> int caulateGroupAndItem(std::vector<T> &matrix, int nextItemId, vector<identify::schema::ISCH_SCHEMA_ITEM> &itemv, std::vector<identify::schema::ISCH_IDENTIFY_GROUP> &groupsv, std::vector<T2>& handleInfos, GROUP_TYPE _type);
  17. template<class T, class T2> int caulateGroupAndItem2(std::vector<T> &matrix, int nextItemId, vector<identify::schema::ISCH_SCHEMA_ITEM> &itemv, std::vector<identify::schema::ISCH_IDENTIFY_GROUP> &groupsv, std::vector<T2>& handleInfos, GROUP_TYPE _type);
  18. void SetPageDefault(identify::schema::ISCH_SCHEMA_PAGE& page);
  19. long m_examId;
  20. };