SASSY  0.0
Software Architecture Support System
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Classes | Namespaces | Macros | Typedefs
discover.h File Reference

Provides the API for objects that need to be discoverable for testing. More...

#include "stringy.h"
#include <map>
#include <vector>
#include <memory>

Go to the source code of this file.

Classes

struct  SASSY::cfi::DiscoverPointer
 Holds a pointer to a discoverable object. More...
 
class  SASSY::cfi::Discoverable
 A mixin class that makes its owner discoverable. More...
 
class  SASSY::cfi::DiscoveryMgr
 Manager for discoverable objects. More...
 

Namespaces

 SASSY
 The namespace for the Software Architecture Support System project.
 
 SASSY::cfi
 The namespace for the Common Facilities Infrastructure components.
 

Macros

#define DISCOVERABLE
 

Typedefs

typedef std::shared_ptr
< DiscoverPointer > 
SASSY::cfi::DiscoverSharedPointer
 A shared pointer that will be owned by a discoverable object.
 
typedef std::weak_ptr
< DiscoverPointer > 
SASSY::cfi::DiscoverWeakPointer
 A weak pointer that will be held by the DiscoveryMgr.
 

Detailed Description

Provides the API for objects that need to be discoverable for testing.

This header should be included in the code for modules that need to be tested.

Macro Definition Documentation

#define DISCOVERABLE
Value:
SASSY::cfi::DiscoveryMgr::instance().save( __PRETTY_FUNCTION__, \
(discover.reset( new SASSY::cfi::DiscoverPointer( this )), discover) );
Holds a pointer to a discoverable object.
Definition: discover.h:52
static DiscoveryMgr & instance()
Return a reference to the DiscoveryMgr.
Definition: discover.cpp:38
void save(const char *prettyName, DiscoverSharedPointer p)
Save a discoverable object.
Definition: discover.cpp:46