Remove annoying comments from genclass template.
authorMichael Andres <ma@suse.de>
Wed, 6 Oct 2010 10:01:08 +0000 (12:01 +0200)
committerMichael Andres <ma@suse.de>
Wed, 6 Oct 2010 10:01:08 +0000 (12:01 +0200)
devel/genclass.in

index 3307458..b79c7eb 100644 (file)
@@ -105,32 +105,26 @@ $(intro $CLASS_H)
 
 $(nsopen)
 
-${INDENT}///////////////////////////////////////////////////////////////////
-${INDENT}//
-${INDENT}//    CLASS NAME : ${CLASS}
-${INDENT}//
 ${INDENT}/** */
 ${INDENT}class ${CLASS}
 ${INDENT}{
 ${INDENT}  friend std::ostream & operator<<( std::ostream & str, const ${CLASS} & obj );
 
-${INDENT}public:
-${INDENT}  /** Implementation  */
-${INDENT}  class Impl;
-
-${INDENT}public:
-${INDENT}  /** Default ctor */
-${INDENT}  ${CLASS}();
-${INDENT}  /** Dtor */
-${INDENT}  ~${CLASS}();
+${INDENT}  public:
+${INDENT}    /** Default ctor */
+${INDENT}    ${CLASS}();
+${INDENT}    /** Dtor */
+${INDENT}    ~${CLASS}();
 
-${INDENT}public:
+${INDENT}  public:
 
-${INDENT}private:
-${INDENT}  /** Pointer to implementation */
-${INDENT}  RWCOW_pointer<Impl> _pimpl;
+${INDENT}  public:
+${INDENT}    /** Implementation  */
+${INDENT}    class Impl;
+${INDENT}  private:
+${INDENT}    /** Pointer to implementation */
+${INDENT}    RWCOW_pointer<Impl> _pimpl;
 ${INDENT}};
-${INDENT}///////////////////////////////////////////////////////////////////
 
 ${INDENT}/** \relates ${CLASS} Stream output */
 ${INDENT}std::ostream & operator<<( std::ostream & str, const ${CLASS} & obj );
@@ -154,35 +148,28 @@ using std::endl;
 
 $(nsopen)
 
-${INDENT}///////////////////////////////////////////////////////////////////
-${INDENT}//
-${INDENT}//    CLASS NAME : ${CLASS}::Impl
-${INDENT}//
 ${INDENT}/** ${CLASS} implementation. */
 ${INDENT}struct ${CLASS}::Impl
 ${INDENT}{
 
-${INDENT}public:
-${INDENT}  /** Offer default Impl. */
-${INDENT}  static shared_ptr<Impl> nullimpl()
-${INDENT}  {
-${INDENT}    static shared_ptr<Impl> _nullimpl( new Impl );
-${INDENT}    return _nullimpl;
-${INDENT}  }
-
-${INDENT}private:
-${INDENT}  friend Impl * rwcowClone<Impl>( const Impl * rhs );
-${INDENT}  /** clone for RWCOW_pointer */
-${INDENT}  Impl * clone() const
-${INDENT}  { return new Impl( *this ); }
+${INDENT}  public:
+${INDENT}    /** Offer default Impl. */
+${INDENT}    static shared_ptr<Impl> nullimpl()
+${INDENT}    {
+${INDENT}      static shared_ptr<Impl> _nullimpl( new Impl );
+${INDENT}      return _nullimpl;
+${INDENT}    }
+
+${INDENT}  private:
+${INDENT}    friend Impl * rwcowClone<Impl>( const Impl * rhs );
+${INDENT}    /** clone for RWCOW_pointer */
+${INDENT}    Impl * clone() const
+${INDENT}    { return new Impl( *this ); }
 ${INDENT}};
-${INDENT}///////////////////////////////////////////////////////////////////
 
 ${INDENT}/** \relates ${CLASS}::Impl Stream output */
 ${INDENT}inline std::ostream & operator<<( std::ostream & str, const ${CLASS}::Impl & obj )
-${INDENT}{
-${INDENT}  return str << "${CLASS}::Impl";
-${INDENT}}
+${INDENT}{ return str << "${CLASS}::Impl"; }
 
 ${INDENT}///////////////////////////////////////////////////////////////////
 ${INDENT}//
@@ -190,32 +177,15 @@ ${INDENT}//       CLASS NAME : ${CLASS}
 ${INDENT}//
 ${INDENT}///////////////////////////////////////////////////////////////////
 
-${INDENT}///////////////////////////////////////////////////////////////////
-${INDENT}//
-${INDENT}//    METHOD NAME : ${CLASS}::${CLASS}
-${INDENT}//    METHOD TYPE : Ctor
-${INDENT}//
 ${INDENT}${CLASS}::${CLASS}()
-${INDENT}: _pimpl( Impl::nullimpl() )
+${INDENT}  : _pimpl( Impl::nullimpl() )
 ${INDENT}{}
 
-${INDENT}///////////////////////////////////////////////////////////////////
-${INDENT}//
-${INDENT}//    METHOD NAME : ${CLASS}::~${CLASS}
-${INDENT}//    METHOD TYPE : Dtor
-${INDENT}//
 ${INDENT}${CLASS}::~${CLASS}()
 ${INDENT}{}
 
-${INDENT}/******************************************************************
-${INDENT}**
-${INDENT}**    FUNCTION NAME : operator<<
-${INDENT}**    FUNCTION TYPE : std::ostream &
-${INDENT}*/
 ${INDENT}std::ostream & operator<<( std::ostream & str, const ${CLASS} & obj )
-${INDENT}{
-${INDENT}  return str << *obj._pimpl;
-${INDENT}}
+${INDENT}{ return str << *obj._pimpl; }
 
 $(nsclose)
 EOF