LabeledSetCreatorInterface.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #ifndef LABELEDSETCREATORINTERFACE_H
  2. #define LABELEDSETCREATORINTERFACE_H
  3. #include "core/basics/Config.h"
  4. #include "vislearning/cbaselib/ClassNames.h"
  5. #include "vislearning/cbaselib/LabeledSet.h"
  6. namespace OBJREC
  7. {
  8. /**
  9. * @brief Interface for extraction of information from xml files.
  10. *
  11. * This is used to have variable way of creating a LabeledSet from possibly many different xml file formats.
  12. * Each xml file has its own interface implementation to enable xml specific loadings.
  13. *
  14. * @see LabeledSetFactory
  15. *
  16. * @author Johannes Ruehle
  17. * @date 2012/05/18
  18. */
  19. class LabeledSetCreatorInterface
  20. {
  21. public:
  22. LabeledSetCreatorInterface(){};
  23. virtual ~LabeledSetCreatorInterface(){};
  24. /**
  25. * @brief Extract label information from a xml file and insert in a LabeledSet data structure.
  26. * @param p_sXmlFilename xml file name to load
  27. * @param p_LabelSet LabeledSet to be filled by data extracted from the xml file.
  28. */
  29. virtual void createLabeledSet( std::string p_sXmlFilename,
  30. const NICE::Config & p_conf,
  31. const ClassNames & p_classnames,
  32. LabeledSet &p_LabelSet) = 0;
  33. };
  34. }//Namespace
  35. #endif // LABELEDSETCREATORINTERFACE_H