libIEC61850
Open-source IEC 61850 MMS server and client library
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
mms_named_variable_list.h
Go to the documentation of this file.
1 /*
2  * mms_named_variable_list.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_NAMED_VARIABLE_LIST_H_
25 #define MMS_NAMED_VARIABLE_LIST_H_
26 
31 #include <stdbool.h>
32 #include "linked_list.h"
33 #include "string_utilities.h"
34 #include "mms_common.h"
35 
36 //typedef struct sMmsDomain MmsDomain;
37 //typedef struct sMmsNamedVariableList* MmsNamedVariableList;
38 //typedef struct sMmsNamedVariableListEntry* MmsNamedVariableListEntry;
39 
41  bool deletable;
42  char* name;
43  LinkedList listOfVariables;
44 };
45 
46 //struct sMmsNamedVariableListEntry {
47 // MmsDomain* domain;
48 // char* variableName;
49 // //int index;
50 // //char* componentName;
51 //};
52 
53 MmsNamedVariableListEntry
54 MmsNamedVariableListEntry_create(MmsAccessSpecifier accessSpecifier);
55 
56 void
57 MmsNamedVariableListEntry_destroy(MmsNamedVariableListEntry self);
58 
59 MmsDomain*
60 MmsNamedVariableListEntry_getDomain(MmsNamedVariableListEntry self);
61 
62 char*
63 MmsNamedVariableListEntry_getVariableName(MmsNamedVariableListEntry self);
64 
65 MmsNamedVariableList
66 MmsNamedVariableList_create(char* name, bool deletable);
67 
68 char*
69 MmsNamedVariableList_getName(MmsNamedVariableList self);
70 
71 bool
72 MmsNamedVariableList_isDeletable(MmsNamedVariableList self);
73 
74 void
75 MmsNamedVariableList_addVariable(MmsNamedVariableList self, MmsNamedVariableListEntry variable);
76 
77 LinkedList
78 MmsNamedVariableList_getVariableList(MmsNamedVariableList self);
79 
80 void
81 MmsNamedVariableList_destroy(MmsNamedVariableList self);
82 
85 #endif /* MMS_NAMED_VARIABLE_LIST_H_ */