Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   Related Pages  

Dash.hh

Go to the documentation of this file.
00001 /*
00002 
00003     libpdf++: a C++ Free library to generate PDF file
00004     Copyright (C) 2002 Nestal Wan
00005 
00006     This library is free software; you can redistribute it and/or
00007     modify it under the terms of the GNU Lesser General Public
00008     License as published by the Free Software Foundation; either
00009     version 2.1 of the License, or (at your option) any later version.
00010 
00011     This library is distributed in the hope that it will be useful,
00012     but WITHOUT ANY WARRANTY; without even the implied warranty of
00013     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014     Lesser General Public License for more details.
00015 
00016     You should have received a copy of the GNU Lesser General Public
00017     License along with this library; if not, write to the Free Software
00018     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00019 */
00027 #ifndef __PDF_GRAPH_DASH_HEADER_INCLUDED__
00028 #define __PDF_GRAPH_DASH_HEADER_INCLUDED__
00029 
00030 #include <iosfwd>
00031 #include <vector>
00032 
00033 namespace pdf { namespace graph {
00034 
00043 class CDash
00044 {
00045 private :
00046     std::vector<double> m_dash_array ;         
00047 
00048     double m_dash_phase ;                      
00049 
00050 public :
00051     CDash( ) ;
00052     CDash( double dash_phase ) ;
00053     CDash( double dash_array, double dash_phase ) ;
00054     CDash( double dash_array0, double dash_array1, double dash_phase ) ;
00055     CDash( const CDash& dash ) ;
00056     
00057     ~CDash( ) ;
00058     
00059     std::ostream& Print( std::ostream& os ) const ;
00060 
00061     bool operator==( const CDash& dash ) const ;
00062     bool operator!=( const CDash& dash ) const
00063         { return !operator==( dash ) ; }
00064 
00065 private :
00066 #ifdef _DEBUG
00067     bool IsValid( ) const ;
00068 #endif
00069 } ;
00070 
00071 inline std::ostream& operator<<( std::ostream& os, const CDash& dash )
00072 {
00073     return dash.Print( os ) ;
00074 }
00075 
00076 } } // end of namespace
00077 
00078 #endif

Generated on Sun Feb 2 09:16:04 2003 for libpdf++ by doxygen1.2.16