iec61850_config_file_parser.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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. * \brief Functions to create data models from simple text configuration files create with the configuration file tool.
  36. *
  37. * @{
  38. */
  39. /**
  40. * \brief Create a data model from simple text configuration file
  41. *
  42. * \param filename name or path of the configuraton file
  43. *
  44. * \return the data model to be used by \ref IedServer
  45. */
  46. LIB61850_API IedModel*
  47. ConfigFileParser_createModelFromConfigFileEx(const char* filename);
  48. LIB61850_API IedModel*
  49. ConfigFileParser_createModelFromConfigFile(FileHandle fileHandle);
  50. /**@}*/
  51. /**@}*/
  52. #ifdef __cplusplus
  53. }
  54. #endif
  55. #endif /* CONFIG_FILE_PARSER_H_ */