17 #ifndef DEFAULTPROFILEMANAGER_HPP_
18 #define DEFAULTPROFILEMANAGER_HPP_
27 #include "kaa/profile/gen/ProfileDefinitions.hpp"
47 profileContainer_ = container;
61 if (profileContainer_) {
62 return avroConverter.
toByteArray(profileContainer_->getProfile());
64 #if KAA_PROFILE_SCHEMA_VERSION > 0
79 if (serializedProfile.first.get() && serializedProfile.second > 0) {
86 #if KAA_PROFILE_SCHEMA_VERSION > 0
87 return profileContainer_.operator bool();
100 transport_ = transport;
ProfileManager(IKaaClientContext &context)
std::shared_ptr< IProfileContainer > IProfileContainerPtr
virtual bool isInitialized()
SharedDataBuffer toByteArray(const T &datum)
SharedDataBuffer getSerializedProfile()
virtual void setTransport(IProfileTransportPtr transport)
virtual void setProfileContainer(IProfileContainerPtr container)
std::pair< boost::shared_array< std::uint8_t >, std::uint32_t > SharedDataBuffer
std::shared_ptr< IProfileTransport > IProfileTransportPtr