-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into register_cdasim_adapter
- Loading branch information
Showing
43 changed files
with
315 additions
and
174 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#pragma once | ||
|
||
namespace tmx::utils { | ||
|
||
|
||
/// Cartesian Coordinates on a . | ||
typedef struct Point | ||
{ | ||
Point() : X(0), Y(0), Z(0) {} | ||
|
||
Point(double x, double y, double z = 0.0): | ||
X(x), Y(y), Z(z) { } | ||
|
||
double X; | ||
double Y; | ||
double Z; | ||
} Point; | ||
|
||
} // namespace tmx::utils |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#include "gtest/gtest.h" | ||
#include <librdkafka/rdkafkacpp.h> | ||
|
||
/** | ||
* @brief Kafka Test Environment which allows for Setup/Teardown configuration at the | ||
* test program level. Teardown waits on all rd_kafka_t objects to be destroyed. | ||
*/ | ||
class KafkaTestEnvironment : public ::testing::Environment { | ||
public: | ||
~KafkaTestEnvironment() override {} | ||
|
||
// Override this to define how to set up the environment. | ||
void SetUp() override {} | ||
|
||
// Override this to define how to tear down the environment. | ||
void TearDown() override { | ||
std::cout << "Waiting for all RDKafka objects to be destroyed!" << std::endl; | ||
// Wait for all rd_kafka_t objects to be destroyed | ||
auto error = RdKafka::wait_destroyed(5000); | ||
if (error == RdKafka::ERR__TIMED_OUT) { | ||
std::cout << "Wait destroy attempted timed out!" << std::endl; | ||
} | ||
else { | ||
std::cout << "All Objects are destroyed!" << std::endl; | ||
} | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.