/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* ex: set filetype=cpp softtabstop=4 shiftwidth=4 tabstop=4 cindent expandtab: */ /* $Id: cmnGenericObject.cpp,v 1.5 2007/04/26 19:33:56 anton Exp $ Author(s): Anton Deguet Created on: 2005-08-11 (C) Copyright 2005-2007 Johns Hopkins University (JHU), All Rights Reserved. --- begin cisst license - do not edit --- This software is provided "as is" under an open source license, with no warranty. The complete license can be found in license.txt and http://www.cisst.org/cisst/license.txt. --- end cisst license --- */ #include #include std::string cmnGenericObject::ToString(void) const { std::stringstream outputStream; ToStream(outputStream); return outputStream.str(); } void cmnGenericObject::ToStream(std::ostream & outputStream) const { outputStream << "Default output for class: " << Services()->GetName(); } void cmnGenericObject::SerializeRaw(std::ostream & outputStream) const { CMN_LOG_CLASS(5) << "No serialization implemented for: " << Services()->GetName(); } void cmnGenericObject::DeSerializeRaw(std::istream & inputStream) { CMN_LOG_CLASS(5) << "No de-serialization implemented for: " << Services()->GetName(); } // **************************************************************************** // // $Log: cmnGenericObject.cpp,v $ // Revision 1.5 2007/04/26 19:33:56 anton // All files in libraries: Applied new license text, separate copyright and // updated dates, added standard header where missing. // // Revision 1.4 2007/04/17 17:29:56 anton // cmnGenericObject: Added virtual methods for serialization. See #149 and #252 // // Revision 1.3 2006/11/20 20:33:19 anton // Licensing: Applied new license to cisstCommon, cisstVector, cisstNumerical, // cisstInteractive, cisstImage and cisstOSAbstraction. // // Revision 1.2 2005/09/26 15:41:46 anton // cisst: Added modelines for emacs and vi. // // Revision 1.1 2005/08/11 17:24:18 anton // cmnGenericObject: Added ToString() and ToStream() methods for all classes // derived from cmnGenericObject. Updated cmnPath to reflect these changes. // See also ticket #68. // // // ****************************************************************************