Skip to content

Commit

Permalink
Refs #5827 Introduce the factory
Browse files Browse the repository at this point in the history
  • Loading branch information
jmborr committed Sep 10, 2012
1 parent acb245c commit 9e21d8c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Code/Mantid/Framework/API/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ set ( SRC_FILES
# src/GridDomain.cpp
# src/GridDomain1D.cpp
src/ITransformScale.cpp
# src/TransformScaleFactory.cpp
src/TransformScaleFactory.cpp
src/LinearScale.cpp
src/LogarithmScale.cpp
src/Algorithm.cpp
Expand Down Expand Up @@ -119,7 +119,7 @@ set ( INC_FILES
# inc/MantidAPI/GridDomain.h
# inc/MantidAPI/GridDomain1D.h
inc/MantidAPI/ITransformScale.h
# inc/MantidAPI/TransformScaleFactory.h
inc/MantidAPI/TransformScaleFactory.h
inc/MantidAPI/LinearScale.h
inc/MantidAPI/LogarithmScale.h
inc/MantidAPI/Algorithm.h
Expand Down
4 changes: 2 additions & 2 deletions Code/Mantid/Framework/API/inc/MantidAPI/ITransformScale.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,13 @@ typedef boost::shared_ptr<ITransformScale> ITransformScale_sptr;
} // namespace API
} // namespace Mantid

/*

#define DECLARE_TRANSFORMSCALE(classname) \
namespace { \
Mantid::Kernel::RegistrationHelper register_trs_##classname( \
((Mantid::API::TransformScaleFactory::Instance().subscribe<classname>(#classname)) \
, 0)); \
}
*/


#endif /*MANTID_API_ITRANSFORMSCALE_H_*/
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ namespace Mantid

/// Private Constructor for singleton class
TransformScaleFactoryImpl();
///Private Destructor for singleton
///Private destructor for singleton
virtual ~TransformScaleFactoryImpl();
/// Override the DynamicFactory::createUnwrapped() method. We don't want it used here.
ITransformScale* createUnwrapped(const std::string& className) const;
Expand Down

0 comments on commit 9e21d8c

Please sign in to comment.