From 697558aa430c6bb5e9fb25d39ae9156a4d5403c3 Mon Sep 17 00:00:00 2001 From: cathook Date: Tue, 22 Apr 2014 02:28:31 +0800 Subject: fix readme --- meowpp/oo/Register_Implement.h | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) (limited to 'meowpp/oo') diff --git a/meowpp/oo/Register_Implement.h b/meowpp/oo/Register_Implement.h index 2e8ca32..a27591d 100644 --- a/meowpp/oo/Register_Implement.h +++ b/meowpp/oo/Register_Implement.h @@ -28,26 +28,26 @@ namespace meow{ virtual ~RegisterInterface(){ } std::vector getIdentifys() const; }; - /******************************************************************* - @asciidoc - === meow:: *ImplementInterface/RegisterInterface* (C++ Class) - .Description - Assume there is a problem which can be solved by different algorithms. - Then you can write multiple classes to approach this problem. + - Now if you want to decide which algorithm to use in runtime, you can just - approach this case by a simple way: - - * Let all the problem-solving classes inherit from - `class ImplementInterface` , and call the constructure with giving - `identify` (type `T` ) . - * Create an class inherit from `RegisterInterface` , and register all your - implement class to it by call `regImplement(pointer to the class)`. - * Select which implement class you want by call `getImplement(identify)` , - which will return the pointer to the corresponding class. - - ''' - @asciidoc- - ******************************************************************/ + //# + //# === meow:: *ImplementInterface/RegisterInterface* (C++ Class) + //# ==== Description + //# Assume there is a problem which can be solved by different algorithms. + //# Then you can write multiple classes to approach this problem. + + //# Now if you want to decide which algorithm to use in runtime, you can just + //# approach this case by a simple way: + //# + //# * Let all the problem-solving classes inherit from + //# `class ImplementInterface` , and call the constructure with giving + //# `identify` (type `T` ) . + //# * Create an class inherit from `RegisterInterface` , + //# and register all your implement class to it by call + //# `regImplement(pointer to the class)`. + //# * Select which implement class you want by call + //# `getImplement(identify)` , which will return the pointer + //# to the corresponding class. + //# + //# ''' + //# } #include "Register_Implement.hpp" -- cgit v1.2.3