00001
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00032
00033 #ifndef GROOVX_TCL_IO_OBJWRITER_CC_UTC20051108233856_DEFINED
00034 #define GROOVX_TCL_IO_OBJWRITER_CC_UTC20051108233856_DEFINED
00035
00036 #include "tcl-io/objwriter.h"
00037
00038 #include "io/io.h"
00039 #include "nub/ref.h"
00040 #include "rutz/error.h"
00041 #include "rutz/trace.h"
00042 #include "tcl/conversions.h"
00043
00044 tcl::obj_writer::obj_writer()
00045 {
00046 GVX_TRACE("tcl::obj_writer::obj_writer");
00047 }
00048
00049 tcl::obj_writer::~obj_writer() throw()
00050 {
00051 GVX_TRACE("tcl::obj_writer::~obj_writer");
00052 }
00053
00054 void tcl::obj_writer::write_char(const char* , char val)
00055 {
00056 m_obj = tcl::convert_from(val);
00057 }
00058
00059 void tcl::obj_writer::write_int(const char* , int val)
00060 {
00061 m_obj = tcl::convert_from(val);
00062 }
00063
00064 void tcl::obj_writer::write_bool(const char* , bool val)
00065 {
00066 m_obj = tcl::convert_from(val);
00067 }
00068
00069 void tcl::obj_writer::write_double(const char* , double val)
00070 {
00071 m_obj = tcl::convert_from(val);
00072 }
00073
00074 void tcl::obj_writer::write_value_obj(const char* , const rutz::value& v)
00075 {
00076 m_obj = tcl::convert_from(v);
00077 }
00078
00079 void tcl::obj_writer::write_byte_array(const char* name,
00080 const unsigned char* data,
00081 unsigned int length)
00082 {
00083 this->default_write_byte_array(name, data, length);
00084 }
00085
00086 void tcl::obj_writer::write_object(const char* ,
00087 nub::soft_ref<const io::serializable> )
00088 {
00089 throw rutz::error("not supported", SRC_POS);
00090 }
00091
00092 void tcl::obj_writer::write_owned_object(const char* ,
00093 nub::ref<const io::serializable> )
00094 {
00095 throw rutz::error("not supported", SRC_POS);
00096 }
00097
00098 void tcl::obj_writer::write_base_class(const char* ,
00099 nub::ref<const io::serializable> )
00100 {
00101 throw rutz::error("not supported", SRC_POS);
00102 }
00103
00104 void tcl::obj_writer::write_root(const io::serializable* )
00105 {
00106 throw rutz::error("not supported", SRC_POS);
00107 }
00108
00109 void tcl::obj_writer::write_cstring(const char* , const char* val)
00110 {
00111 m_obj = tcl::convert_from(val);
00112 }
00113
00114 static const char __attribute__((used)) vcid_groovx_tcl_io_objwriter_cc_utc20051108233856[] = "$Id: objwriter.cc 10065 2007-04-12 05:54:56Z rjpeters $ $HeadURL: file:
00115 #endif // !GROOVX_TCL_IO_OBJWRITER_CC_UTC20051108233856DEFINED