SimpleQueueRegistry.hpp 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /**
  2. * \file
  3. * \author T. Canham
  4. * \brief Class declaration for a simple queue registry
  5. *
  6. * The simple object registry is meant to give a default implementation
  7. * and an example of a queue registry. When the registry is instantiated,
  8. * it registers itself with the setQueueRegistry() static method. When
  9. * queues in the system are instantiated, they will register themselves.
  10. * The registry can then query the instances about their names, sizes,
  11. * and high watermarks.
  12. *
  13. * \copyright
  14. * Copyright 2013-2016, by the California Institute of Technology.
  15. * ALL RIGHTS RESERVED. United States Government Sponsorship
  16. * acknowledged.
  17. *
  18. */
  19. #ifndef SIMPLEQUEUEREGISTRY_HPP_
  20. #define SIMPLEQUEUEREGISTRY_HPP_
  21. #if FW_QUEUE_REGISTRATION
  22. #include <Os/Queue.hpp>
  23. namespace Os {
  24. class SimpleQueueRegistry: public QueueRegistry {
  25. public:
  26. SimpleQueueRegistry(); //!< constructor
  27. virtual ~SimpleQueueRegistry(); //!< destructor
  28. void regQueue(Queue* obj); //!< method called by queue init() methods to register a new queue
  29. void dump(); //!< dump list of queues and stats
  30. };
  31. } /* namespace Os */
  32. #endif // FW_QUEUE_REGISTRATION
  33. #endif /* SIMPLEQUEUEREGISTRY_HPP_ */