You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
libcimpp is a deserialiser library for C++ objects from XML/RDF documents based on the Common Information Model (CIM) standards (i.e. IEC61970/61968/62325) and CGMES for the energy sector.
4
4
It is part of the CIM++ project. More on CIM++ can be found [here](http://rdcu.be/vOop).
limcimpp uses [arabica](http://www.jezuk.co.uk/cgi-bin/view/arabica) as cross platform wrapper around one of the XML parsers listed in the dependencies (see below).
11
16
It is recommended to use libcimpp as cmake module.
12
17
13
18
## Dependencies
19
+
14
20
You need following software packages for libcimpp:
21
+
15
22
+ One of the following XML parsers:
16
23
+[libxml2](http://www.xmlsoft.org/) (usually chosen under Linux and often can be installed as a package of the used distribution)
17
24
+[Xerces](http://xerces.apache.org/xerces-c/)
18
25
+[Microsoft XML Parser](https://support.microsoft.com/en-en/help/324460) (this one is used per default when building with MS Visual Studio)
19
26
+ Build system:
20
27
+[cmake](https://cmake.org/)
21
28
22
-
23
29
## Build instructions
24
30
25
31
### UNIX / Linux / MacOS
26
32
27
33
After getting the Git repository, create a build subdirectory and change into it:
34
+
28
35
```bash
29
36
mkdir build
30
37
cd build
31
38
```
32
39
33
40
For building libcimpp with the default CIM version, type:
41
+
34
42
```bash
35
43
cmake ..
36
44
make -j 4
37
45
```
38
46
39
47
For building libcimpp with a certain CIM version (e.g. `CGMES_2.4.15_27JAN2020`), type:
48
+
40
49
```bash
41
50
cmake .. -DUSE_CIM_VERSION=CGMES_2.4.15_27JAN2020
42
51
make -j 4
@@ -45,22 +54,30 @@ make -j 4
45
54
All available CIM versions are listed in the [CMakeLists.txt](CMakeLists.txt)
46
55
47
56
### Windows with MS Visual Studio
57
+
48
58
1. After getting the Git repository, create a `build` subdirectory.
49
59
2. Run the Windows CMake (GUI)
50
60
3. Set the
51
-
* source code directory, e.g.: `C:/git/libcimpp`
52
-
* build directory, e.g.: `C:/git/libcimpp/build`
61
+
+ source code directory, e.g.: `C:/git/libcimpp`
62
+
+ build directory, e.g.: `C:/git/libcimpp/build`
53
63
4. Click on `Configure` and choose the Visual Studio project version, e.g.: `Visual Studio 15 2017`
54
64
5. Click on `Finish` and wait while CMake is configuring the project.
55
65
6. Click on `Generate` to generate the Visual Studio project files.
56
66
7. Click on `Open Project` to open the project in Visual Studio.
57
67
8. In Visual Studio's main menu choose `Build -> Build Solution`. This will build the `libcimpp` library.
58
68
59
69
## Usage of the libcimpp library
70
+
60
71
For information on how to use the library please see the cmake based example in examples/cmake.
61
72
Building the example is just like building the library itself using cmake.
73
+
74
+
```bash
75
+
cmake .. -DCIMPP_BUILD_EXAMPLES=ON
76
+
make -j 4
77
+
```
78
+
62
79
The make example is currently not supported due to the lack of an install target for arabica.
63
80
64
81
## License
65
82
66
-
This project is released under the terms of the [Apache License 2.0](./LICENSE).
83
+
This project is released under the terms of the [Apache License 2.0](./LICENSE).
0 commit comments