Files
Li, Xun d10cabebb5 Linux 2.5 Open Source Gold Release
Added new APIs in sgx_uae_service.h and sgx_ukey_exchange.h to support ECDSA quote based remote attestation.
  The set of legacy APIs supports EPID only and the set of new APIs supports ECDSA quotes.
Enhanced Edger8r with structure deep-copy feature.
Fixed bugs.

Signed-off-by: Li, Xun <xun.li@intel.com>
2019-04-02 13:26:58 +08:00

36 lines
931 B
C++

//! [GetBundleContext]
#include "cppmicroservices/Bundle.h"
#include "cppmicroservices/BundleActivator.h"
#include "cppmicroservices/BundleContext.h"
#include "cppmicroservices/GetBundleContext.h"
#include <iostream>
using namespace cppmicroservices;
void RetrieveBundleContext()
{
auto context = GetBundleContext();
auto bundle = context.GetBundle();
std::cout << "Bundle name: " << bundle.GetSymbolicName()
<< " [id: " << bundle.GetBundleId() << "]\n";
}
//! [GetBundleContext]
//! [InitializeBundle]
#include "cppmicroservices/BundleInitialization.h"
CPPMICROSERVICES_INITIALIZE_BUNDLE
//! [InitializeBundle]
int main(int /*argc*/, char* /*argv*/ [])
{
std::cout
<< "This snippet is not meant to be executed.\n"
"It does not provide a complete working example.\n"
"See "
"http://docs.cppmicroservices.org/en/stable/doc/src/getting_started.html"
<< std::endl;
return 0;
}