1 #include <iomanip> 2 #include <iostream> 3 4 #include "../print.hpp" 5 6 template< typename category_name > test_make()7 void test_make() 8 { 9 std::cout << "{{{{ {{{{ {{{{ {{{{ {{{{ {{{{ {{{{ {{{{ {{{{ {{{{ {{{{ {{{{ {{{{ {{{{ {{{{ {{{{"<< std::endl; 10 std::cout << "function - " << __FUNCTION__ << std::endl; 11 std::cout << "type - " << typeid( category_name ).name() << std::endl; 12 std::cout << std::endl; 13 14 typedef color::model< category_name > model_type; 15 typedef typename model_type::component_type component_type; 16 17 model_type c; std::cout << " model_type c"; print( c ); std::cout <<";"<< std::endl; 18 19 color::make::aqua ( c ); std::cout << " color::make::aqua ( c ); "; print( c ); std::cout << std::endl; 20 color::make::black ( c ); std::cout << " color::make::black ( c ); "; print( c ); std::cout << std::endl; 21 color::make::blue ( c ); std::cout << " color::make::blue ( c ); "; print( c ); std::cout << std::endl; 22 color::make::cyan ( c ); std::cout << " color::make::cyan ( c ); "; print( c ); std::cout << std::endl; 23 color::make::fuchsia ( c ); std::cout << " color::make::fuchsia ( c ); "; print( c ); std::cout << std::endl; 24 color::make::gray50 ( c ); std::cout << " color::make::gray50 ( c ); "; print( c ); std::cout << std::endl; 25 color::make::green ( c ); std::cout << " color::make::green ( c ); "; print( c ); std::cout << std::endl; 26 color::make::lime ( c ); std::cout << " color::make::lime ( c ); "; print( c ); std::cout << std::endl; 27 color::make::magenta ( c ); std::cout << " color::make::magenta ( c ); "; print( c ); std::cout << std::endl; 28 color::make::maroon ( c ); std::cout << " color::make::maroon ( c ); "; print( c ); std::cout << std::endl; 29 color::make::navy ( c ); std::cout << " color::make::navy ( c ); "; print( c ); std::cout << std::endl; 30 color::make::olive ( c ); std::cout << " color::make::olive ( c ); "; print( c ); std::cout << std::endl; 31 color::make::orange ( c ); std::cout << " color::make::orange ( c ); "; print( c ); std::cout << std::endl; 32 color::make::purple ( c ); std::cout << " color::make::purple ( c ); "; print( c ); std::cout << std::endl; 33 color::make::red ( c ); std::cout << " color::make::red ( c ); "; print( c ); std::cout << std::endl; 34 color::make::silver ( c ); std::cout << " color::make::silver ( c ); "; print( c ); std::cout << std::endl; 35 color::make::teal ( c ); std::cout << " color::make::teal ( c ); "; print( c ); std::cout << std::endl; 36 color::make::violet ( c ); std::cout << " color::make::violet ( c ); "; print( c ); std::cout << std::endl; 37 color::make::white ( c ); std::cout << " color::make::white ( c ); "; print( c ); std::cout << std::endl; 38 color::make::yellow ( c ); std::cout << " color::make::yellow ( c ); "; print( c ); std::cout << std::endl; 39 40 color::make::aquamarine ( c ); std::cout << " color::make::aquamarine ( c ); "; print( c ); std::cout << std::endl; 41 color::make::azure ( c ); std::cout << " color::make::azure ( c ); "; print( c ); std::cout << std::endl; 42 color::make::beige ( c ); std::cout << " color::make::beige ( c ); "; print( c ); std::cout << std::endl; 43 color::make::bisque ( c ); std::cout << " color::make::bisque ( c ); "; print( c ); std::cout << std::endl; 44 color::make::brown ( c ); std::cout << " color::make::brown ( c ); "; print( c ); std::cout << std::endl; 45 color::make::chocolate ( c ); std::cout << " color::make::chocolate ( c ); "; print( c ); std::cout << std::endl; 46 color::make::coral ( c ); std::cout << " color::make::coral ( c ); "; print( c ); std::cout << std::endl; 47 color::make::crimson ( c ); std::cout << " color::make::crimson ( c ); "; print( c ); std::cout << std::endl; 48 color::make::gainsboro ( c ); std::cout << " color::make::gainsboro ( c ); "; print( c ); std::cout << std::endl; 49 color::make::gold ( c ); std::cout << " color::make::gold ( c ); "; print( c ); std::cout << std::endl; 50 color::make::indigo ( c ); std::cout << " color::make::indigo ( c ); "; print( c ); std::cout << std::endl; 51 color::make::ivory ( c ); std::cout << " color::make::ivory ( c ); "; print( c ); std::cout << std::endl; 52 color::make::khaki ( c ); std::cout << " color::make::khaki ( c ); "; print( c ); std::cout << std::endl; 53 color::make::lavender ( c ); std::cout << " color::make::lavender ( c ); "; print( c ); std::cout << std::endl; 54 color::make::linen ( c ); std::cout << " color::make::linen ( c ); "; print( c ); std::cout << std::endl; 55 color::make::moccasin ( c ); std::cout << " color::make::moccasin ( c ); "; print( c ); std::cout << std::endl; 56 color::make::orchid ( c ); std::cout << " color::make::orchid ( c ); "; print( c ); std::cout << std::endl; 57 color::make::peru ( c ); std::cout << " color::make::peru ( c ); "; print( c ); std::cout << std::endl; 58 color::make::pink ( c ); std::cout << " color::make::pink ( c ); "; print( c ); std::cout << std::endl; 59 color::make::plum ( c ); std::cout << " color::make::plum ( c ); "; print( c ); std::cout << std::endl; 60 color::make::salmon ( c ); std::cout << " color::make::salmon ( c ); "; print( c ); std::cout << std::endl; 61 color::make::sienna ( c ); std::cout << " color::make::sienna ( c ); "; print( c ); std::cout << std::endl; 62 color::make::snow ( c ); std::cout << " color::make::snow ( c ); "; print( c ); std::cout << std::endl; 63 color::make::tan ( c ); std::cout << " color::make::tan ( c ); "; print( c ); std::cout << std::endl; 64 color::make::thistle ( c ); std::cout << " color::make::thistle ( c ); "; print( c ); std::cout << std::endl; 65 color::make::tomato ( c ); std::cout << " color::make::tomato ( c ); "; print( c ); std::cout << std::endl; 66 color::make::turquoise ( c ); std::cout << " color::make::turquoise ( c ); "; print( c ); std::cout << std::endl; 67 color::make::wheat ( c ); std::cout << " color::make::wheat ( c ); "; print( c ); std::cout << std::endl; 68 69 std::cout << std::endl; 70 std::cout << "function - " << __FUNCTION__ << std::endl; 71 std::cout << "type - " << typeid(category_name).name() << std::endl; 72 std::cout << "}}}} }}}} }}}} }}}} }}}} }}}} }}}} }}}} }}}} }}}} }}}} }}}} }}}} }}}} }}}} }}}}" << std::endl; 73 } 74 75