iec61850_config_file_parser.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /*
  2. * config_file_parser.h
  3. *
  4. * Copyright 2014 Michael Zillgith
  5. *
  6. * This file is part of libIEC61850.
  7. *
  8. * libIEC61850 is free software: you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License as published by
  10. * the Free Software Foundation, either version 3 of the License, or
  11. * (at your option) any later version.
  12. *
  13. * libIEC61850 is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with libIEC61850. If not, see <http://www.gnu.org/licenses/>.
  20. *
  21. * See COPYING file for the complete license text.
  22. */
  23. #ifndef CONFIG_FILE_PARSER_H_
  24. #define CONFIG_FILE_PARSER_H_
  25. #ifdef __cplusplus
  26. extern "C" {
  27. #endif
  28. #include "hal_filesystem.h"
  29. /** \addtogroup server_api_group
  30. * @{
  31. */
  32. /**
  33. * @defgroup CONFIG_FILE_PARSER Create data models by configuration files
  34. *
  35. * @{
  36. */
  37. /**
  38. * \brief Create a data model from simple text configuration file
  39. *
  40. * \param filename name or path of the configuraton file
  41. *
  42. * \return the data model to be used by \ref IedServer
  43. */
  44. LIB61850_API IedModel*
  45. ConfigFileParser_createModelFromConfigFileEx(const char* filename);
  46. LIB61850_API IedModel*
  47. ConfigFileParser_createModelFromConfigFile(FileHandle fileHandle);
  48. /**@}*/
  49. /**@}*/
  50. #ifdef __cplusplus
  51. }
  52. #endif
  53. #endif /* CONFIG_FILE_PARSER_H_ */