ss_type2tm_type.g.cc

Go to the documentation of this file.
00001 // This file is automatically generated, do not edit.
00002 
00003 /*!
00004         \file
00005         \brief ss_type to tm_data type convertor.
00006         \author jaz
00007 */
00008 
00009 #include <lestes/md/types/tm_data_type.g.hh>
00010 
00011 #include <lestes/std/list.hh>
00012 #include <lestes/std/pair.hh>
00013 #include <lestes/std/reflect.hh>
00014 
00015 #include <lestes/md/types/ss_type2tm_type.g.hh>
00016 
00017 package(lestes);
00018 package(md);
00019 package(types);
00020 
00021 
00022 // ------------- Class ss_type2tm_type follows. -------------
00023 
00024 /*!
00025    \returns The value of ss_type2tm_type::singleton_instance.
00026    \author lsg
00027  */
00028 ptr< ss_type2tm_type > ss_type2tm_type::singleton_instance_get()
00029 {
00030         return singleton_instance;
00031 }
00032 
00033 /*!
00034    \param[in] x The new value to set ss_type2tm_type::singleton_instance to.
00035    \author lsg
00036  */
00037 void ss_type2tm_type::singleton_instance_set(const ptr< ss_type2tm_type > & x)
00038 {
00039         ss_type2tm_type::singleton_instance = x;
00040 }
00041 
00042 /*!
00043    This factory method for class ss_type2tm_type takes values of all fields as arguments.
00044    \author lsg
00045  */
00046 ptr< ss_type2tm_type > ss_type2tm_type::create()
00047 {
00048         return ptr< ss_type2tm_type > ( new ss_type2tm_type() );
00049 }
00050 
00051 /*!
00052    Generated constructor for class ss_type2tm_type.
00053    \author lsg
00054  */
00055 ss_type2tm_type::ss_type2tm_type ()
00056         : ss_type2tm_type_base()
00057 {}
00058 
00059 ptr< object::reflection_list > ss_type2tm_type::reflection_get() const
00060 {
00061         if (!reflection) {
00062                 typedef class_reflection::field_metadata md;
00063                 typedef class_reflection::field_metadata_list mdlist;
00064                 ptr<mdlist> mdl = mdlist::create();
00065                 mdl->push_back( md::create( "singleton_instance", "ss_type2tm_type" ) );
00066                 reflection = reflection_list::create( ss_type2tm_type_base::reflection_get() );
00067                 reflection->push_back( class_reflection::create( "ss_type2tm_type", mdl ) );
00068         }
00069         return reflection;
00070 }
00071 
00072 ptr< object::field_list_list > ss_type2tm_type::field_values_get() const
00073 {
00074         ptr < field_list_list > result = ss_type2tm_type_base::field_values_get();
00075         result->push_back( value_list::create() );
00076         result->back()->push_back( this->singleton_instance );
00077         return result;
00078 }
00079 
00080 
00081 /*!
00082    Marking routine is used for garbage collection.
00083    \author lsg
00084  */
00085 void ss_type2tm_type::gc_mark()
00086 {
00087         ss_type2tm_type_base::gc_mark();
00088 }
00089 
00090 // End of class ss_type2tm_type.
00091 
00092 
00093 // static data members follow 
00094 ptr< ss_type2tm_type > ss_type2tm_type::singleton_instance = singleton_instance;
00095 ptr<object::reflection_list> ss_type2tm_type::reflection = reflection;
00096 
00097 end_package(types);
00098 end_package(md);
00099 end_package(lestes);
00100 

Generated on Mon Feb 12 18:23:33 2007 for lestes by doxygen 1.5.1-20070107