Skip to content

Commit

Permalink
Fork (#16)
Browse files Browse the repository at this point in the history
* Add files via upload

* Add files via upload

* changes

* Delete src/docstring_replace.py

* Delete src/function_comments.py

* final comments

* final

* deleted external files

* towards future commits

* pr feedbakc

---------

Co-authored-by: Fatih Orhan <[email protected]>
  • Loading branch information
Simon-Sandrew and FatihOrhan0 authored Apr 17, 2024
1 parent e5639c0 commit 88adfad
Show file tree
Hide file tree
Showing 39 changed files with 757 additions and 814 deletions.
1 change: 0 additions & 1 deletion src/applications/bmqbrkr/etc/etc

This file was deleted.

2 changes: 0 additions & 2 deletions src/groups/wrappers/z_bmq/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,5 @@
# Add the libbmq group library only installing the public headers
add_library(z_bmq)

target_compile_definitions(z_bmq PRIVATE "MWC_INTERNAL_USAGE")

target_bmq_style_uor( z_bmq )

10 changes: 0 additions & 10 deletions src/groups/wrappers/z_bmq/z-bmq.pc

This file was deleted.

41 changes: 0 additions & 41 deletions src/groups/wrappers/z_bmq/z_bmqConfig.cmake

This file was deleted.

36 changes: 18 additions & 18 deletions src/groups/wrappers/z_bmq/z_bmqa/z_bmqa_closequeuestatus.cpp
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
#include <bmqa_closequeuestatus.h>
#include <z_bmqa_closequeuestatus.h>

int z_bmqa_CloseQueueStatus__delete(z_bmqa_CloseQueueStatus** status_obj)
int z_bmqa_CloseQueueStatus__delete(z_bmqa_CloseQueueStatus** closeQueueStatus)
{
using namespace BloombergLP;

BSLS_ASSERT(status_obj != NULL);
BSLS_ASSERT(closeQueueStatus != NULL);

bmqa::CloseQueueStatus* status_p =
reinterpret_cast<bmqa::CloseQueueStatus*>(*status_obj);
reinterpret_cast<bmqa::CloseQueueStatus*>(*closeQueueStatus);
delete status_p;
*status_obj = NULL;
*closeQueueStatus = NULL;

return 0;
}

int z_bmqa_CloseQueueStatus__create(z_bmqa_CloseQueueStatus** status_obj)
int z_bmqa_CloseQueueStatus__create(z_bmqa_CloseQueueStatus** closeQueueStatus)
{
using namespace BloombergLP;

bmqa::CloseQueueStatus* status_p = new bmqa::CloseQueueStatus();

*status_obj = reinterpret_cast<z_bmqa_CloseQueueStatus*>(status_p);
*closeQueueStatus = reinterpret_cast<z_bmqa_CloseQueueStatus*>(status_p);

return 0;
}

int z_bmqa_CloseQueueStatus__createCopy(z_bmqa_CloseQueueStatus** status_obj,
int z_bmqa_CloseQueueStatus__createCopy(z_bmqa_CloseQueueStatus** closeQueueStatus,
const z_bmqa_CloseQueueStatus* other)
{
using namespace BloombergLP;
Expand All @@ -35,12 +35,12 @@ int z_bmqa_CloseQueueStatus__createCopy(z_bmqa_CloseQueueStatus** status_obj,
reinterpret_cast<const bmqa::CloseQueueStatus*>(other);
bmqa::CloseQueueStatus* status_p = new bmqa::CloseQueueStatus(*other_p);

*status_obj = reinterpret_cast<z_bmqa_CloseQueueStatus*>(status_p);
*closeQueueStatus = reinterpret_cast<z_bmqa_CloseQueueStatus*>(status_p);

return 0;
}

int z_bmqa_CloseQueueStatus__createFull(z_bmqa_CloseQueueStatus** status_obj,
int z_bmqa_CloseQueueStatus__createFull(z_bmqa_CloseQueueStatus** closeQueueStatus,
const z_bmqa_QueueId* queueId,
int result,
const char* errorDescription)
Expand All @@ -56,44 +56,44 @@ int z_bmqa_CloseQueueStatus__createFull(z_bmqa_CloseQueueStatus** status_obj,
*queueId_p,
result_enum,
errorDescription_str);
*status_obj = reinterpret_cast<z_bmqa_CloseQueueStatus*>(status_p);
*closeQueueStatus = reinterpret_cast<z_bmqa_CloseQueueStatus*>(status_p);

return 0;
}

bool z_bmqa_CloseQueueStatus__toBool(const z_bmqa_CloseQueueStatus* status_obj)
bool z_bmqa_CloseQueueStatus__toBool(const z_bmqa_CloseQueueStatus* closeQueueStatus)
{
using namespace BloombergLP;
const bmqa::CloseQueueStatus* status_p =
reinterpret_cast<const bmqa::CloseQueueStatus*>(status_obj);
reinterpret_cast<const bmqa::CloseQueueStatus*>(closeQueueStatus);
return *status_p;
}

int z_bmqa_CloseQueueStatus__queueId(const z_bmqa_CloseQueueStatus* status_obj,
int z_bmqa_CloseQueueStatus__queueId(const z_bmqa_CloseQueueStatus* closeQueueStatus,
z_bmqa_QueueId const** queueId_obj)
{
using namespace BloombergLP;
const bmqa::CloseQueueStatus* status_p =
reinterpret_cast<const bmqa::CloseQueueStatus*>(status_obj);
reinterpret_cast<const bmqa::CloseQueueStatus*>(closeQueueStatus);
const bmqa::QueueId* queueId_p = &(status_p->queueId());

*queueId_obj = reinterpret_cast<const z_bmqa_QueueId*>(queueId_p);
return 0;
}

int z_bmqa_CloseQueueStatus__result(const z_bmqa_CloseQueueStatus* status_obj)
int z_bmqa_CloseQueueStatus__result(const z_bmqa_CloseQueueStatus* closeQueueStatus)
{
using namespace BloombergLP;
const bmqa::CloseQueueStatus* status_p =
reinterpret_cast<const bmqa::CloseQueueStatus*>(status_obj);
reinterpret_cast<const bmqa::CloseQueueStatus*>(closeQueueStatus);
return status_p->result();
}

const char* z_bmqa_CloseQueueStatus__errorDescription(
const z_bmqa_CloseQueueStatus* status_obj)
const z_bmqa_CloseQueueStatus* closeQueueStatus)
{
using namespace BloombergLP;
const bmqa::CloseQueueStatus* status_p =
reinterpret_cast<const bmqa::CloseQueueStatus*>(status_obj);
reinterpret_cast<const bmqa::CloseQueueStatus*>(closeQueueStatus);
return status_p->errorDescription().c_str();
}
32 changes: 16 additions & 16 deletions src/groups/wrappers/z_bmq/z_bmqa/z_bmqa_closequeuestatus.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,49 +15,49 @@ typedef struct z_bmqa_CloseQueueStatus z_bmqa_CloseQueueStatus;
*
* This function deallocates the memory pointed to by the input pointer to a bmqa::CloseQueueStatus object and sets the pointer to NULL.
*
* @param status_obj A pointer to a pointer to a bmqa::CloseQueueStatus object.
* @param closeQueueStatus A pointer to a pointer to a bmqa::CloseQueueStatus object.
* Upon successful completion, this pointer will be set to NULL.
* @return Returns 0 upon successful deletion.
*/
int z_bmqa_CloseQueueStatus__delete(z_bmqa_CloseQueueStatus** status_obj);
int z_bmqa_CloseQueueStatus__delete(z_bmqa_CloseQueueStatus** closeQueueStatus);

/**
* @brief Creates a new bmqa::CloseQueueStatus object.
*
* This function creates a new bmqa::CloseQueueStatus object and assigns its pointer to the provided pointer.
*
* @param status_obj A pointer to a pointer to a bmqa::CloseQueueStatus object.
* @param closeQueueStatus A pointer to a pointer to a bmqa::CloseQueueStatus object.
* Upon successful completion, this pointer will hold the newly created CloseQueueStatus object.
* @return Returns 0 upon successful creation.
*/
int z_bmqa_CloseQueueStatus__create(z_bmqa_CloseQueueStatus** status_obj);
int z_bmqa_CloseQueueStatus__create(z_bmqa_CloseQueueStatus** closeQueueStatus);

/**
* @brief Creates a copy of a bmqa::CloseQueueStatus object.
*
* This function creates a copy of the specified bmqa::CloseQueueStatus object and assigns its pointer to the provided pointer.
*
* @param status_obj A pointer to a pointer to a bmqa::CloseQueueStatus object.
* @param closeQueueStatus A pointer to a pointer to a bmqa::CloseQueueStatus object.
* Upon successful completion, this pointer will hold the newly created copy of the CloseQueueStatus object.
* @param other A pointer to a constant bmqa::CloseQueueStatus object to copy.
* @return Returns 0 upon successful creation.
*/
int z_bmqa_CloseQueueStatus__createCopy(z_bmqa_CloseQueueStatus** status_obj,
int z_bmqa_CloseQueueStatus__createCopy(z_bmqa_CloseQueueStatus** closeQueueStatus,
const z_bmqa_CloseQueueStatus* other);

/**
* @brief Creates a bmqa::CloseQueueStatus object with specified parameters.
*
* This function creates a new bmqa::CloseQueueStatus object with the specified parameters and assigns its pointer to the provided pointer.
*
* @param status_obj A pointer to a pointer to a bmqa::CloseQueueStatus object.
* @param closeQueueStatus A pointer to a pointer to a bmqa::CloseQueueStatus object.
* Upon successful completion, this pointer will hold the newly created CloseQueueStatus object.
* @param queueId A pointer to a constant z_bmqa_QueueId object representing the queue identifier.
* @param result An integer representing the result of the close operation.
* @param errorDescription A pointer to a constant character string representing the error description.
* @return Returns 0 upon successful creation.
*/
int z_bmqa_CloseQueueStatus__createFull(z_bmqa_CloseQueueStatus** status_obj,
int z_bmqa_CloseQueueStatus__createFull(z_bmqa_CloseQueueStatus** closeQueueStatus,
const z_bmqa_QueueId* queueId,
int result,
const char* errorDescription);
Expand All @@ -67,45 +67,45 @@ int z_bmqa_CloseQueueStatus__createFull(z_bmqa_CloseQueueStatus** status_obj,
*
* This function converts the specified CloseQueueStatus object to a boolean value.
*
* @param status_obj A pointer to a constant z_bmqa_CloseQueueStatus object to convert.
* @param closeQueueStatus A pointer to a constant z_bmqa_CloseQueueStatus object to convert.
* @return Returns true if the CloseQueueStatus object indicates success, false otherwise.
*/
bool z_bmqa_CloseQueueStatus__toBool(
const z_bmqa_CloseQueueStatus* status_obj);
const z_bmqa_CloseQueueStatus* closeQueueStatus);

/**
* @brief Retrieves the queue identifier from a CloseQueueStatus object.
*
* This function retrieves the queue identifier from the specified CloseQueueStatus object.
*
* @param status_obj A pointer to a constant z_bmqa_CloseQueueStatus object.
* @param closeQueueStatus A pointer to a constant z_bmqa_CloseQueueStatus object.
* @param queueId_obj A pointer to a pointer to a constant z_bmqa_QueueId object.
* Upon successful completion, this pointer will hold the queue identifier.
* @return Returns 0 upon successful retrieval of the queue identifier.
*/
int z_bmqa_CloseQueueStatus__queueId(const z_bmqa_CloseQueueStatus* status_obj,
int z_bmqa_CloseQueueStatus__queueId(const z_bmqa_CloseQueueStatus* closeQueueStatus,
z_bmqa_QueueId const** queueId_obj);

/**
* @brief Retrieves the result of a close queue operation from a CloseQueueStatus object.
*
* This function retrieves the result of the close queue operation from the specified CloseQueueStatus object.
*
* @param status_obj A pointer to a constant z_bmqa_CloseQueueStatus object.
* @param closeQueueStatus A pointer to a constant z_bmqa_CloseQueueStatus object.
* @return Returns an integer representing the result of the close queue operation.
*/
int z_bmqa_CloseQueueStatus__result(const z_bmqa_CloseQueueStatus* status_obj);
int z_bmqa_CloseQueueStatus__result(const z_bmqa_CloseQueueStatus* closeQueueStatus);

/**
* @brief Retrieves the error description from a CloseQueueStatus object.
*
* This function retrieves the error description from the specified CloseQueueStatus object.
*
* @param status_obj A pointer to a constant z_bmqa_CloseQueueStatus object.
* @param closeQueueStatus A pointer to a constant z_bmqa_CloseQueueStatus object.
* @return Returns a pointer to a constant character string representing the error description.
*/
const char* z_bmqa_CloseQueueStatus__errorDescription(
const z_bmqa_CloseQueueStatus* status_obj);
const z_bmqa_CloseQueueStatus* closeQueueStatus);

#if defined(__cplusplus)
}
Expand Down
Loading

0 comments on commit 88adfad

Please sign in to comment.