Welcome to CppMicroServices’s documentation!¶
The CppMicroServices project is a C++ library for creating and managing modular software systems based on ideas from OSGi. The code is open source, and available on github.
The main documentation for the site is organized into a couple sections. Start reading at the top for a quick start.
Best Practices
- Tutorial
- Example 1 - Service Event Listener
- Example 2 - Dictionary Service Bundle
- Example 2b - Alternative Dictionary Service Bundle
- Example 3 - Dictionary Client Bundle
- Example 4 - Robust Dictionary Client Bundle
- Example 5 - Service Tracker Dictionary Client Bundle
- Example 6 - Spell Checker Service Bundle
- Example 7 - Spell Checker Client Bundle
- Emulating Singletons
Bundles & Tools
API Reference
- CMake Support
- Framework API
- Main
- Bundle
operator<<()
operator<<()
operator<<()
cppmicroservices::Bundle
State
StartOptions
StopOptions
TimeStamp
Bundle()
Bundle()
operator=()
operator=()
Bundle()
~Bundle()
operator==()
operator!=()
operator<()
operator bool()
operator=()
GetState()
GetBundleContext()
GetBundleId()
GetLocation()
GetSymbol()
GetSymbolicName()
GetVersion()
GetProperties()
GetHeaders()
GetProperty()
GetPropertyKeys()
GetRegisteredServices()
GetServicesInUse()
GetResource()
FindResources()
GetLastModified()
Start()
Start()
Stop()
Stop()
Uninstall()
Bundle()
d
c
MakeBundle
- BundleActivator
- BundleContext
cppmicroservices::BundleContext
BundleContext()
operator==()
operator!=()
operator<()
operator bool()
operator=()
GetProperty()
GetProperties()
GetBundle()
GetBundle()
GetBundles()
GetBundles()
RegisterService()
RegisterService()
RegisterService()
GetServiceReferences()
GetServiceReferences()
GetServiceReference()
GetServiceReference()
GetService()
GetService()
GetService()
GetServiceObjects()
AddServiceListener()
RemoveServiceListener()
AddBundleListener()
RemoveBundleListener()
AddFrameworkListener()
RemoveFrameworkListener()
RemoveListener()
AddServiceListener()
RemoveServiceListener()
AddBundleListener()
RemoveBundleListener()
AddFrameworkListener()
RemoveFrameworkListener()
GetDataFile()
InstallBundles()
- BundleEvent
- BundleEventHook
- BundleFindHook
- BundleResource
operator<<()
cppmicroservices::BundleResource
BundleResource()
BundleResource()
~BundleResource()
operator=()
operator<()
operator==()
operator!=()
IsValid()
operator bool()
GetName()
GetPath()
GetResourcePath()
GetBaseName()
GetCompleteBaseName()
GetSuffix()
GetCompleteSuffix()
IsDir()
IsFile()
GetChildren()
GetChildResources()
GetSize()
GetCompressedSize()
GetLastModified()
GetCrc32()
std::hash< cppmicroservices::BundleResource >
- BundleResourceStream
- Framework
- FrameworkEvent
- PrototypeServiceFactory
- ServiceEvent
- ServiceEventListenerHook
- ServiceException
- ServiceFactory
- ServiceFindHook
- ServiceInterface
- ServiceListenerHook
- ServiceObjects
- ServiceReference
- ServiceRegistration
- ServiceTracker
cppmicroservices::ServiceTracker
TrackedParamType
TrackingMap
~ServiceTracker()
ServiceTracker()
ServiceTracker()
ServiceTracker()
ServiceTracker()
Open()
Close()
WaitForService()
WaitForService()
GetServiceReferences()
GetServiceReference()
GetService()
GetServices()
GetService()
Remove()
Size()
GetTrackingCount()
GetTracked()
IsEmpty()
WaitForService()
AddingService()
ModifiedService()
RemovedService()
cppmicroservices::ServiceTrackerCustomizer
- Bundle
- Utilities
- Any
- AnyMap
cppmicroservices::AnyMap
cppmicroservices::any_map
map_type
key_type
mapped_type
value_type
size_type
difference_type
reference
const_reference
pointer
const_pointer
ordered_any_map
unordered_any_map
unordered_any_cimap
iterator
const_iterator
any_map()
any_map()
any_map()
any_map()
any_map()
any_map()
any_map()
any_map()
operator=()
any_map()
operator=()
~any_map()
begin()
begin()
cbegin()
end()
end()
cend()
empty()
size()
count()
clear()
at()
at()
operator[]()
operator[]()
insert()
emplace()
find()
erase()
operator==()
operator!=()
o
uo
uoci
type
cppmicroservices::any_map::const_iter
cppmicroservices::any_map::iter
- BundleVersion
- Constants
cppmicroservices::Constants
SYSTEM_BUNDLE_LOCATION
SYSTEM_BUNDLE_SYMBOLICNAME
BUNDLE_ACTIVATOR
BUNDLE_CATEGORY
BUNDLE_COPYRIGHT
BUNDLE_DESCRIPTION
BUNDLE_MANIFESTVERSION
BUNDLE_NAME
BUNDLE_VENDOR
BUNDLE_VERSION
BUNDLE_DOCURL
BUNDLE_CONTACTADDRESS
BUNDLE_SYMBOLICNAME
BUNDLE_LOCALIZATION
BUNDLE_LOCALIZATION_DEFAULT_BASENAME
BUNDLE_ACTIVATIONPOLICY
ACTIVATION_LAZY
FRAMEWORK_VERSION
FRAMEWORK_VENDOR
FRAMEWORK_STORAGE
FRAMEWORK_STORAGE_CLEAN
FRAMEWORK_STORAGE_CLEAN_ONFIRSTINIT
FRAMEWORK_THREADING_SUPPORT
FRAMEWORK_THREADING_SINGLE
FRAMEWORK_THREADING_MULTI
FRAMEWORK_LOG
FRAMEWORK_UUID
FRAMEWORK_WORKING_DIR
FRAMEWORK_BUNDLE_VALIDATION_FUNC
OBJECTCLASS
SERVICE_ID
SERVICE_PID
SERVICE_RANKING
SERVICE_VENDOR
SERVICE_DESCRIPTION
SERVICE_SCOPE
SCOPE_SINGLETON
SCOPE_BUNDLE
SCOPE_PROTOTYPE
LIBRARY_LOAD_OPTIONS
- FrameworkFactory
- GetBundleContext
- LDAPFilter
- Listeners
- SharedLibrary
- ShrinkableMap
cppmicroservices::ShrinkableMap
container_type
iterator
const_iterator
size_type
key_type
mapped_type
value_type
reference
const_reference
ShrinkableMap()
begin()
begin()
end()
end()
erase()
erase()
erase()
empty()
clear()
size()
max_size()
operator[]()
at()
at()
count()
find()
find()
equal_range()
equal_range()
lower_bound()
lower_bound()
upper_bound()
upper_bound()
- ShrinkableVector
- Macros
- Main
- Declarative Services API
- Configuration Admin API
- LogService API
- AsyncWorkService API
- Http Service API
- HttpServlet
- HttpServletRequest
cppmicroservices::HttpServletRequest
~HttpServletRequest()
HttpServletRequest()
operator=()
GetServletContext()
GetAttribute()
GetAttributeNames()
GetContentLength()
GetContentType()
GetLocalName()
GetRemoteHost()
GetLocalPort()
GetRemotePort()
GetScheme()
GetServerName()
GetServerPort()
GetProtocol()
GetContextPath()
GetPathInfo()
GetRequestUri()
GetRequestUrl()
GetServletPath()
GetQueryString()
GetHeader()
GetDateHeader()
GetHeaderNames()
GetHeaders()
GetMethod()
GetAcceptHeader()
RemoveAttribute()
SetAttribute()
- HttpServletResponse
cppmicroservices::HttpServletResponse
~HttpServletResponse()
HttpServletResponse()
operator=()
FlushBuffer()
IsCommitted()
GetBufferSize()
GetCharacterEncoding()
GetContentType()
GetOutputStream()
Reset()
ResetBuffer()
SetBufferSize()
SetCharacterEncoding()
SetContentLength()
SetContentType()
AddHeader()
SetHeader()
SetDateHeader()
AddIntHeader()
SetIntHeader()
ContainsHeader()
GetHeader()
GetStatus()
SetStatus()
SendError()
SendRedirect()
SC_CONTINUE
SC_SWITCHING_PROTOCOLS
SC_OK
SC_CREATED
SC_ACCEPTED
SC_NON_AUTHORITATIVE_INFORMATION
SC_NO_CONTENT
SC_RESET_CONTENT
SC_PARTIAL_CONTENT
SC_MULTIPLE_CHOICES
SC_MOVED_PERMANENTLY
SC_FOUND
SC_MOVED_TEMPORARILY
SC_SEE_OTHER
SC_NOT_MODIFIED
SC_USE_PROXY
SC_TEMPORARY_REDIRECT
SC_BAD_REQUEST
SC_UNAUTHORIZED
SC_PAYMENT_REQUIRED
SC_FORBIDDEN
SC_NOT_FOUND
SC_METHOD_NOT_ALLOWED
SC_NOT_ACCEPTABLE
SC_PROXY_AUTHENTICATION_REQUIRED
SC_REQUEST_TIMEOUT
SC_CONFLICT
SC_GONE
SC_LENGTH_REQUIRED
SC_PRECONDITION_FAILED
SC_REQUEST_ENTITY_TOO_LARGE
SC_REQUEST_URI_TOO_LONG
SC_UNSUPPORTED_MEDIA_TYPE
SC_REQUESTED_RANGE_NOT_SATISFIABLE
SC_EXPECTATION_FAILED
SC_INTERNAL_SERVER_ERROR
SC_NOT_IMPLEMENTED
SC_BAD_GATEWAY
SC_SERVICE_UNAVAILABLE
SC_GATEWAY_TIMEOUT
SC_HTTP_VERSION_NOT_SUPPORTED
HttpServletResponse()
GetOutputStreamBuffer()
SetOutputStreamBuffer()
d
- ServletConfig
- ServletContainer
- ServletContext
- Web Console API
- Shell Service API