libIEC61850
Open-source IEC 61850 MMS server and client library
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
mms_domain.h
Go to the documentation of this file.
1 /*
2  * mms_domain.h
3  *
4  * Copyright 2013 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 
24 #ifndef MMS_DOMAIN_H_
25 #define MMS_DOMAIN_H_
26 
33 #include "mms_type_spec.h"
34 #include "mms_common.h"
36 #include <stdbool.h>
37 
38 
39 
43 struct sMmsDomain {
44  char* domainName;
46  MmsTypeSpecification** namedVariables;
47  LinkedList /*<MmsNamedVariableList>*/ namedVariableLists;
48 };
49 
55 MmsDomain*
56 MmsDomain_create(char* domainName);
57 
58 char*
59 MmsDomain_getName(MmsDomain* self);
60 
66 void
67 MmsDomain_destroy(MmsDomain* self);
68 
81 bool
82 MmsDomain_addNamedVariableList(MmsDomain* self, MmsNamedVariableList variableList);
83 
93 void
94 MmsDomain_deleteNamedVariableList(MmsDomain* self, char* variableListName);
95 
96 MmsNamedVariableList
97 MmsDomain_getNamedVariableList(MmsDomain* self, char* variableListName);
98 
99 LinkedList
100 MmsDomain_getNamedVariableLists(MmsDomain* self);
101 
102 LinkedList
103 MmsDomain_getNamedVariableListValues(MmsDomain* self, char* variableListName);
104 
105 LinkedList
106 MmsDomain_createNamedVariableListValues(MmsDomain* self, char* variableListName);
107 
116 MmsTypeSpecification*
117 MmsDomain_getNamedVariable(MmsDomain* domain, char* nameId);
118 
121 #endif /* MMS_DOMAIN_H_ */