Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagebash
echo INTROOT=~/workspace/introot >> ~/.bashrc

Set IDL

...

(Interface Definition Language) for our hello-world components

Create IDL directory and fileFirst we create the directory for the IDL:

Code Block
languagebash
getTemplateForDirectory MODROOT_WS idlHelloComp
cd idlHelloComp/src
touch ../idl/HelloComponent.idl
sudo nano ../idl/HelloComponent.idl

...

Code Block
languagecpp
titleidlHelloComp/idl/HelloComponent.idl
linenumberstrue
#ifndef _HELLOCOMPONENT_IDL_
#define _HELLOCOMPONENT_IDL_

#pragma prefix "acsws"

#include <acscomponent.idl>

module workshop {
    interface HelloComponent : ACS::ACSComponent {
        string printHello();
    };
};

#endif

We modify add our component's IDL to the Makefile:

Code Block
titleidlHelloComponent/src/Makefile
...
IDL_FILES = HelloComponent
HelloComponentStubs_LIBS = acscomponentStubs
...
COMPONENT_HELPERS=on
...

...