#include "MiddlewareInfo.h"
#include "Proxy.h"
#include "Stub.h"
+#include "types.h"
namespace CommonAPI {
middlewareInfo_(middlewareInfo) {
}
+ /**
+ * \brief Creates factory. Don't call manually.
+ *
+ * Creates factory. Don't call manually.
+ */
+ Factory(const std::shared_ptr<Runtime> runtime,
+ const MiddlewareInfo* middlewareInfo,
+ const std::string factoryName,
+ const bool nullOnInvalidName) :
+ runtime_(runtime),
+ middlewareInfo_(middlewareInfo) {
+ }
+
virtual ~Factory() {}
/**
*
* @return Factory object for this runtime
*/
- virtual std::shared_ptr<Factory> createFactory(std::shared_ptr<MainLoopContext> = std::shared_ptr<MainLoopContext>(NULL)) = 0;
+ virtual std::shared_ptr<Factory> createFactory(std::shared_ptr<MainLoopContext> = std::shared_ptr<MainLoopContext>(NULL),
+ const std::string factoryName = "",
+ const bool nullOnInvalidName = false) = 0;
/**
* \brief Returns the ServicePublisher object for this runtime.
#include <cstdint>
-
#if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1)
# define COMMONAPI_DEPRECATED __attribute__ ((__deprecated__))
#elif defined(_MSC_VER) && (_MSC_VER >= 1300)
namespace CommonAPI {
enum class AvailabilityStatus {
- UNKNOWN,
- AVAILABLE,
- NOT_AVAILABLE
+ UNKNOWN,
+ AVAILABLE,
+ NOT_AVAILABLE
};
-
enum class CallStatus {
- SUCCESS,
- OUT_OF_MEMORY,
- NOT_AVAILABLE,
- CONNECTION_FAILED,
- REMOTE_ERROR
+ SUCCESS,
+ OUT_OF_MEMORY,
+ NOT_AVAILABLE,
+ CONNECTION_FAILED,
+ REMOTE_ERROR
};
struct Version {
- Version() = default;
+ Version() = default;
- Version(const uint32_t& majorValue, const uint32_t& minorValue):
- Major(majorValue),
- Minor(minorValue) { }
+ Version(const uint32_t& majorValue, const uint32_t& minorValue):
+ Major(majorValue),
+ Minor(minorValue) {}
- uint32_t Major;
- uint32_t Minor;
+ uint32_t Major;
+ uint32_t Minor;
};
-
} // namespace CommonAPI
#endif // COMMONAPI_TYPES_H_