Clean up examples and finalize the "package" feature, defined as:
- Component libraries have a package name indicated in the "Package" variable in the makefile
- This name provides a globally unique name scope for the *SPECS* in the package.
- The default package name for a library (when not specified) is "local".
- Package names are used in application xml and the "OCPI::API::Application::createWorker" API,
-- to provide a name scope for component "spec" names.  It is a prefix followed by ".".
- The default in application xml is also "local".  Thus no changes needed for private libs and apps.
- The opencpi core component library has the package name "ocpi", thus if the app is asking for
-- a component that implements the "bias" spec as in the opencpi library, it is called "ocpi.bias".
- Note this is *NOT* a reference to any implementations, just the specs.
- In application XML, a top level "package" attribute indicates the default package for all
-- instances in the application.  e.g. <application package='ocpi'> would indicate that
-- instances whose "component" attribute have no package prefix, are assumed to come from the
-- opencpi component library.  If this attribute is not set, the "local" package is assumed.
- In the "OCPI::API::Container::createApplication" api, a "package" parameter indicates a default
-- package for any worker created with the createWorker(name, specname, ...) API.
-- the specname in this API can now take a package prefix.
- In general package names, if not "local", should follow the java classname convention of using
-- the reverse order domain name of the organization.  "ocpi" in this context is essentially a
-- short version of "org.opencpi".
Files in this commit:
components/Makefile: add the "ptest"worker
components/file_read_msg.rcc/file_read_msg.xml: update for proper writability attributes
components/file_write_msg.rcc/file_write_msg.xml: ditto
core/container/interfaces/api/include/OcpiContainerApplication.h: add default package member data
core/container/interfaces/api/src/OcpiContainerApplication.cxx: use package prefix when not supplied
-- in the createWorker(name, specname, ...) method.
core/container/ocl_container/impl/src/OcpiOclContainer.cxx: typo, but still broken
core/local/util/assembly/src/OcpiUtilAssembly.cxx: set default package to "local", other regressions
tools/cdk/examples/bias2_xml/biasFile.cxx: default app package to "ocpi"
tools/cdk/examples/bias_xml/biasFile.cxx: ditto, plus fix instance prefix for props to use '.'
tools/cdk/examples/canny/canny.cxx: ditto, in the API (not xml),
-- also fix exception reporting to exit with non-zero status
tools/cdk/examples/cat_xml/catHello.cxx: set default package to ocpi in xml
tools/cdk/examples/copy_xml/copyFile.cxx: ditto
tools/cdk/examples/dds_ports/Makefile: more careful env check for dds presence
tools/cdk/examples/feature_detection/feature_detection.cxx: use package prefixes in API
-- also fix exception reporting to exit with non-zero status
tools/cdk/examples/fsk_modem_xml/fsk_modem.cxx: add package ocpi to app xml
-- also fix exception reporting to exit with non-zero status
tools/cdk/examples/hello_xml/appHello.cxx: add local prefix to component name in xml
tools/cdk/examples/image_filtering/Makefile: add ocpi prefix to worker name
tools/cdk/examples/image_filtering/image_filtering.cxx: return exit status 1 on exception
tools/cdk/examples/optical_flow/optical_flow.cxx: use ocpi package prefix in API
-- also fix exception reporting to exit with non-zero status
tools/cdk/examples/ptest/ptest.xml: fix invalid prop value found by new stricter value parser
tools/cdk/examples/vsadd/test_vsadd.cxx: use ocpi package prefix in API
-- also fix exception reporting to exit with non-zero status
tools/cdk/include/lib.mk: use "local" as default package when no Package var is set
tools/cdk/include/ocpisetup.mk: don't override OPENCL settings if they are already set