Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DM-5292: Add queue support #3

Merged
merged 10 commits into from Mar 21, 2016
Merged

DM-5292: Add queue support #3

merged 10 commits into from Mar 21, 2016

Conversation

timj
Copy link
Member

@timj timj commented Mar 11, 2016

No description provided.

Fixed loops, at request.
Added code to remove raw pointers being passed back.
Refactored EventTransmitter and EventReceiver to create new base classes
Transmitter and Receiver.  These are used to build EventTransmitter,
EventReceiver, EventEnqueuer, and EventDequeuer.
Fixed raw pointers being passed back from existing methods.
Removed unnessary #includes and whitespace at the end of lines.
assertIsNotNone and assertIsNone, respectively.
Changed assertEqual when comparing a list to assertTupleEqual.
Fixed direct assert inequality to None comparision to assertIsNotNone
@PaulPrice PaulPrice changed the title Tickets/dm 5292 DM-5292: Add queue support Mar 11, 2016
@@ -42,7 +42,8 @@
#include <iostream>
#include <set>

#include "lsst/utils/Utils.h"
#include "boost/shared_ptr.hpp"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we group the boost includes together?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will do

@srp3rd srp3rd merged commit eadab6e into master Mar 21, 2016
* @brief get the destination property name
* @note This is the TYPE of the destination we're using, either a TOPIC or a QUEUE
*/
virtual std::string getDestinationPropertyName() { return NULL; }

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I realize it's too late for comments, but I still have to say it 😄
I hope this method is never called (overridden in all subclasses), constructing an std::string from zero pointer will very likely result in a crash. If you want an empty string use "" or explicit std::string() (I prefer latter).

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch. I suggest you file a ticket so it can get fixed.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, done, DM-7009 assigned to @srp3rd.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants