diff options
author | Chris Johns <chrisj@rtems.org> | 2014-05-09 21:50:37 +1000 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2014-06-18 16:48:08 +1200 |
commit | 100f517ab37265acdf067e36b6860020ec8b2184 (patch) | |
tree | 2316c8b888e11dcbcfbfc66a0c1e31991ea20656 /tester/covoar/TargetFactory.h | |
parent | 4.11: Add ntp patch. (diff) | |
download | rtems-tools-100f517ab37265acdf067e36b6860020ec8b2184.tar.bz2 |
covoar: Merger the covoar source from rtems-testing.git.
Use waf to build covoar.
Diffstat (limited to 'tester/covoar/TargetFactory.h')
-rw-r--r-- | tester/covoar/TargetFactory.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/tester/covoar/TargetFactory.h b/tester/covoar/TargetFactory.h new file mode 100644 index 0000000..f0b22bb --- /dev/null +++ b/tester/covoar/TargetFactory.h @@ -0,0 +1,37 @@ +// +// + +//! @file TargetFactory.h +//! @brief TargetFactory Specification +//! +//! This file contains the specification of a factory for a +//! instances of a family of classes derived from TargetBase. +//! + +#ifndef __TARGET_FACTORY_H__ +#define __TARGET_FACTORY_H__ + +#include <string> +#include "TargetBase.h" + +namespace Target { + + //! + //! @brief Target Construction Factory + //! + //! This method implements a factory for construction of instances + //! classes derived from TargetBase. Given the name of the class instance + //! and name of the instance, it returns an instance. + //! + //! @param [in] targetName is the name of the target to create. + //! + //! @return This method constructs a new instance of an TargetBase and + //! returns that to the caller. + //! + TargetBase *TargetFactory( + std::string targetName + ); + +} +#endif + |