Information
We are currently investigating an issue with the editor of some pages. Please save your work and avoid to create new pages until this banner is gone.
Note |
---|
In case you haven't done this step already, you must Build and install IDL first. |
Code Block | ||
---|---|---|
| ||
cd ~/workspace getTemplateForDirectory MODROOT_WS cppHelloComp cd cppHelloComp/src touch HelloComponentImpl.cpp touch ../include/HelloComponentImpl.h vim Makefile |
...
Code Block | ||
---|---|---|
| ||
export INTROOT=~/workspace/introot
export LD_LIBRARY_PATH=$INTROOT/lib:$LD_LIBRARY_PATH
make all install |
...
Code Block | ||||
---|---|---|---|---|
| ||||
<e Name="HelloWorldCPP" Code="HelloComponentImpl" Type="IDL:acsws/workshop/HelloComponent:1.0" Container="bilboContainer" ImplLang="cpp" /> |
...
Code Block | ||||
---|---|---|---|---|
| ||||
from Acspy.Clients.SimpleClient import PySimpleClient client = PySimpleClient() hc_cppcomponent = client.getComponent("HelloWorldCPP") print(hc_cppcomponent.printHello()) |
Run component:
...