libopc
part.h
Go to the documentation of this file.
1 /*
2  Copyright (c) 2010, Florian Reuter
3  All rights reserved.
4 
5  Redistribution and use in source and binary forms, with or without
6  modification, are permitted provided that the following conditions
7  are met:
8 
9  * Redistributions of source code must retain the above copyright
10  notice, this list of conditions and the following disclaimer.
11  * Redistributions in binary form must reproduce the above copyright
12  notice, this list of conditions and the following disclaimer in
13  the documentation and/or other materials provided with the
14  distribution.
15  * Neither the name of Florian Reuter nor the names of its contributors
16  may be used to endorse or promote products derived from this
17  software without specific prior written permission.
18 
19  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
20  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
21  LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
22  FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
23  COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
24  INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
25  BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
26  LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27  CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
28  STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29  ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
30  OF THE POSSIBILITY OF SUCH DAMAGE.
31 
32 */
36 #include <opc/config.h>
37 
38 #ifndef OPC_PART_H
39 #define OPC_PART_H
40 
41 #ifdef __cplusplus
42 extern "C" {
43 #endif
44 
48  typedef xmlChar* opcPart;
49 
55 #define OPC_PART_INVALID NULL
56 
61  opcPart opcPartFind(opcContainer *container,
62  const xmlChar *absolutePath,
63  const xmlChar *type,
64  int flags);
65 
70  opcPart opcPartCreate(opcContainer *container,
71  const xmlChar *absolutePath,
72  const xmlChar *type,
73  int flags);
74 
79  const xmlChar *opcPartGetType(opcContainer *c, opcPart part);
80 
86  const xmlChar *opcPartGetTypeEx(opcContainer *c, opcPart part, opc_bool_t override_only);
87 
91  opc_error_t opcPartDelete(opcContainer *container, const xmlChar *absolutePath);
92 
101  opcPart opcPartGetFirst(opcContainer *container);
102 
107  opcPart opcPartGetNext(opcContainer *container, opcPart part);
108 
112  opc_ofs_t opcPartGetSize(opcContainer *c, opcPart part);
113 
114 #ifdef __cplusplus
115 } /* extern "C" */
116 #endif
117 
118 #endif /* OPC_PART_H */
opcPart opcPartGetNext(opcContainer *container, opcPart part)
Definition: part.c:101
const xmlChar * opcPartGetType(opcContainer *c, opcPart part)
Definition: part.c:68
xmlChar * opcPart
Definition: part.h:48
pbool_t opc_bool_t
Definition: config.h:79
opcPart opcPartCreate(opcContainer *container, const xmlChar *absolutePath, const xmlChar *type, int flags)
Definition: part.c:61
Definition: internal.h:181
opcPart opcPartGetFirst(opcContainer *container)
Definition: part.c:97
opc_ofs_t opcPartGetSize(opcContainer *c, opcPart part)
Definition: part.c:109
enum OPC_ERROR_ENUM opc_error_t
pofs_t opc_ofs_t
Definition: config.h:85
const xmlChar * opcPartGetTypeEx(opcContainer *c, opcPart part, opc_bool_t override_only)
Definition: part.c:72
opc_error_t opcPartDelete(opcContainer *container, const xmlChar *absolutePath)
Definition: part.c:92
opcPart opcPartFind(opcContainer *container, const xmlChar *absolutePath, const xmlChar *type, int flags)
Definition: part.c:54