Update of includes, defines and CMakeLists.
This patch should be verified together with previous one.
Change-Id: I08e38dcba381a2514981068adbabb2e3b35088a5
SET(COMMON_SOURCES
${COMMON_PATH}/containers/BinaryQueue.cpp
${COMMON_PATH}/log/log.cpp
+ ${COMMON_PATH}/protocol/ProtocolAdmin.cpp
+ ${COMMON_PATH}/protocol/ProtocolClient.cpp
${COMMON_PATH}/protocol/ProtocolSerialization.cpp
+ ${COMMON_PATH}/protocol/ProtocolSignal.cpp
+ ${COMMON_PATH}/request/CheckRequest.cpp
+ ${COMMON_PATH}/request/RequestTaker.cpp
+ ${COMMON_PATH}/response/ResponseTaker.cpp
${COMMON_PATH}/types/PolicyBucket.cpp
${COMMON_PATH}/types/PolicyKey.cpp
)
* @brief This file defines protocol base class
*/
-#ifndef SRC_SERVICE_PROTOCOL_PROTOCOL_H_
-#define SRC_SERVICE_PROTOCOL_PROTOCOL_H_
+#ifndef SRC_COMMON_PROTOCOL_PROTOCOL_H_
+#define SRC_COMMON_PROTOCOL_PROTOCOL_H_
#include <memory>
-#include <common.h>
-
+#include <containers/BinaryQueue.h>
#include <request/pointers.h>
#include <request/RequestTaker.h>
#include <response/ResponseTaker.h>
} // namespace Cynara
-#endif /* SRC_SERVICE_PROTOCOL_PROTOCOL_H_ */
+#endif /* SRC_COMMON_PROTOCOL_PROTOCOL_H_ */
* @brief This file defines protocol class for administration
*/
-#ifndef SRC_SERVICE_PROTOCOL_PROTOCOLADMIN_H_
-#define SRC_SERVICE_PROTOCOL_PROTOCOLADMIN_H_
+#ifndef SRC_COMMON_PROTOCOL_PROTOCOLADMIN_H_
+#define SRC_COMMON_PROTOCOL_PROTOCOLADMIN_H_
#include "Protocol.h"
} // namespace Cynara
-#endif /* SRC_SERVICE_PROTOCOL_PROTOCOLADMIN_H_ */
+#endif /* SRC_COMMON_PROTOCOL_PROTOCOLADMIN_H_ */
* @brief This file defines protocol class for communication with client
*/
-#ifndef SRC_SERVICE_PROTOCOL_PROTOCOLCLIENT_H_
-#define SRC_SERVICE_PROTOCOL_PROTOCOLCLIENT_H_
+#ifndef SRC_COMMON_PROTOCOL_PROTOCOLCLIENT_H_
+#define SRC_COMMON_PROTOCOL_PROTOCOLCLIENT_H_
#include "Protocol.h"
} // namespace Cynara
-#endif /* SRC_SERVICE_PROTOCOL_PROTOCOLCLIENT_H_ */
+#endif /* SRC_COMMON_PROTOCOL_PROTOCOLCLIENT_H_ */
* @brief This file defines protocol class for signals
*/
-#ifndef SRC_SERVICE_PROTOCOL_PROTOCOLSIGNAL_H_
-#define SRC_SERVICE_PROTOCOL_PROTOCOLSIGNAL_H_
+#ifndef SRC_COMMON_PROTOCOL_PROTOCOLSIGNAL_H_
+#define SRC_COMMON_PROTOCOL_PROTOCOLSIGNAL_H_
#include "Protocol.h"
} // namespace Cynara
-#endif /* SRC_SERVICE_PROTOCOL_PROTOCOLSIGNAL_H_ */
+#endif /* SRC_COMMON_PROTOCOL_PROTOCOLSIGNAL_H_ */
* @brief This file defines check request class
*/
-#ifndef SRC_SERVICE_REQUEST_CHECKREQUEST_H_
-#define SRC_SERVICE_REQUEST_CHECKREQUEST_H_
+#ifndef SRC_COMMON_REQUEST_CHECKREQUEST_H_
+#define SRC_COMMON_REQUEST_CHECKREQUEST_H_
#include <types/PolicyKey.h>
} // namespace Cynara
-#endif /* SRC_SERVICE_REQUEST_CHECKREQUEST_H_ */
+#endif /* SRC_COMMON_REQUEST_CHECKREQUEST_H_ */
* @brief This file defines request base class
*/
-#ifndef SRC_SERVICE_REQUEST_REQUEST_H_
-#define SRC_SERVICE_REQUEST_REQUEST_H_
+#ifndef SRC_COMMON_REQUEST_REQUEST_H_
+#define SRC_COMMON_REQUEST_REQUEST_H_
#include <request/pointers.h>
-#include <request/pointers.h>
#include <request/RequestTaker.h>
namespace Cynara {
} // namespace Cynara
-#endif /* SRC_SERVICE_REQUEST_REQUEST_H_ */
+#endif /* SRC_COMMON_REQUEST_REQUEST_H_ */
* @brief This file defines request context class
*/
-#ifndef SRC_SERVICE_REQUEST_REQUESTCONTEXT_H_
-#define SRC_SERVICE_REQUEST_REQUESTCONTEXT_H_
+#ifndef SRC_COMMON_REQUEST_REQUESTCONTEXT_H_
+#define SRC_COMMON_REQUEST_REQUESTCONTEXT_H_
#include <memory>
-#include <common.h>
-
+#include <containers/BinaryQueue.h>
#include <request/pointers.h>
#include <response/pointers.h>
#include <response/ResponseTaker.h>
} // namespace Cynara
-#endif /* SRC_SERVICE_REQUEST_REQUESTCONTEXT_H_ */
+#endif /* SRC_COMMON_REQUEST_REQUESTCONTEXT_H_ */
* @brief This file implements RequestTaker class
*/
-#include <common.h>
-
+#include <attributes/attributes.h>
#include <exceptions/NotImplementedException.h>
#include "RequestTaker.h"
* @brief This file defines RequestTaker class
*/
-#ifndef SRC_SERVICE_REQUEST_REQUESTTAKER_H_
-#define SRC_SERVICE_REQUEST_REQUESTTAKER_H_
+#ifndef SRC_COMMON_REQUEST_REQUESTTAKER_H_
+#define SRC_COMMON_REQUEST_REQUESTTAKER_H_
#include <request/pointers.h>
} // namespace Cynara
-#endif /* SRC_SERVICE_REQUEST_REQUESTTAKER_H_ */
+#endif /* SRC_COMMON_REQUEST_REQUESTTAKER_H_ */
* @brief This file defines request base class
*/
-#ifndef SRC_SERVICE_REQUEST_POINTERS_H_
-#define SRC_SERVICE_REQUEST_POINTERS_H_
+#ifndef SRC_COMMON_REQUEST_POINTERS_H_
+#define SRC_COMMON_REQUEST_POINTERS_H_
#include <memory>
} // namespace Cynara
-#endif /* SRC_SERVICE_REQUEST_POINTERS_H_ */
+#endif /* SRC_COMMON_REQUEST_POINTERS_H_ */
* @brief This file defines response class for check request
*/
-#ifndef SRC_SERVICE_RESPONSE_CHECKRESPONSE_H_
-#define SRC_SERVICE_RESPONSE_CHECKRESPONSE_H_
+#ifndef SRC_COMMON_RESPONSE_CHECKRESPONSE_H_
+#define SRC_COMMON_RESPONSE_CHECKRESPONSE_H_
-#include <common.h>
#include <types/PolicyResult.h>
namespace Cynara {
} // namespace Cynara
-#endif /* SRC_SERVICE_RESPONSE_CHECKRESPONSE_H_ */
+#endif /* SRC_COMMON_RESPONSE_CHECKRESPONSE_H_ */
*/
-#include <common.h>
+#include <attributes/attributes.h>
#include <exceptions/NotImplementedException.h>
#include "ResponseTaker.h"
* @brief This file defines ResponseTaker class
*/
-#ifndef SRC_SERVICE_RESPONSE_RESPONSETAKER_H_
-#define SRC_SERVICE_RESPONSE_RESPONSETAKER_H_
-
-#include <common.h>
+#ifndef SRC_COMMON_RESPONSE_RESPONSETAKER_H_
+#define SRC_COMMON_RESPONSE_RESPONSETAKER_H_
#include <request/pointers.h>
#include <response/CheckResponse.h>
} // namespace Cynara
-#endif /* SRC_SERVICE_RESPONSE_RESPONSETAKER_H_ */
+#endif /* SRC_COMMON_RESPONSE_RESPONSETAKER_H_ */
* @brief This file defines response classes pointers
*/
-#ifndef SRC_SERVICE_RESPONSE_POINTERS_H_
-#define SRC_SERVICE_RESPONSE_POINTERS_H_
+#ifndef SRC_COMMON_RESPONSE_POINTERS_H_
+#define SRC_COMMON_RESPONSE_POINTERS_H_
#include <memory>
} // namespace Cynara
-#endif /* SRC_SERVICE_RESPONSE_POINTERS_H_ */
+#endif /* SRC_COMMON_RESPONSE_POINTERS_H_ */
${CYNARA_SERVICE_PATH}/logic/Logic.cpp
${CYNARA_SERVICE_PATH}/main/Cynara.cpp
${CYNARA_SERVICE_PATH}/main/main.cpp
- ${CYNARA_SERVICE_PATH}/protocol/ProtocolAdmin.cpp
- ${CYNARA_SERVICE_PATH}/protocol/ProtocolClient.cpp
- ${CYNARA_SERVICE_PATH}/protocol/ProtocolSignal.cpp
- ${CYNARA_SERVICE_PATH}/request/CheckRequest.cpp
- ${CYNARA_SERVICE_PATH}/request/RequestTaker.cpp
- ${CYNARA_SERVICE_PATH}/response/ResponseTaker.cpp
${CYNARA_SERVICE_PATH}/sockets/Descriptor.cpp
${CYNARA_SERVICE_PATH}/sockets/SocketManager.cpp
${CYNARA_SERVICE_PATH}/storage/InMemoryStorageBackend.cpp