dvpstxl.h

00001 /*
00002  *
00003  *  Copyright (C) 1998-2005, OFFIS
00004  *
00005  *  This software and supporting documentation were developed by
00006  *
00007  *    Kuratorium OFFIS e.V.
00008  *    Healthcare Information and Communication Systems
00009  *    Escherweg 2
00010  *    D-26121 Oldenburg, Germany
00011  *
00012  *  THIS SOFTWARE IS MADE AVAILABLE,  AS IS,  AND OFFIS MAKES NO  WARRANTY
00013  *  REGARDING  THE  SOFTWARE,  ITS  PERFORMANCE,  ITS  MERCHANTABILITY  OR
00014  *  FITNESS FOR ANY PARTICULAR USE, FREEDOM FROM ANY COMPUTER DISEASES  OR
00015  *  ITS CONFORMITY TO ANY SPECIFICATION. THE ENTIRE RISK AS TO QUALITY AND
00016  *  PERFORMANCE OF THE SOFTWARE IS WITH THE USER.
00017  *
00018  *  Module: dcmpstat
00019  *
00020  *  Author: Marco Eichelberg
00021  *
00022  *  Purpose:
00023  *    classes: DVPSTextObject_PList
00024  *
00025  *  Last Update:      $Author: meichel $
00026  *  Update Date:      $Date: 2005/12/08 16:04:09 $
00027  *  CVS/RCS Revision: $Revision: 1.8 $
00028  *  Status:           $State: Exp $
00029  *
00030  *  CVS/RCS Log at end of file
00031  *
00032  */
00033 
00034 #ifndef __DVPSTXL_H__
00035 #define __DVPSTXL_H__
00036 
00037 #include "dcmtk/config/osconfig.h"    /* make sure OS specific configuration is included first */
00038 #include "dcmtk/ofstd/oflist.h"
00039 #include "dcmtk/dcmdata/dctk.h"
00040 
00041 class DVPSTextObject;
00042 
00043 
00050 class DVPSTextObject_PList
00051 {
00052 public:
00054   DVPSTextObject_PList();
00055   
00057   DVPSTextObject_PList(const DVPSTextObject_PList& copy);
00058 
00063   DVPSTextObject_PList *clone() { return new DVPSTextObject_PList(*this); }
00064 
00066   virtual ~DVPSTextObject_PList();
00067 
00077   OFCondition read(DcmItem &dset);
00078 
00085   OFCondition write(DcmItem &dset);
00086 
00091   void clear();
00092   
00096   size_t size() const { return list_.size(); }  
00097 
00103   DVPSTextObject *getTextObject(size_t idx);
00104 
00109   void addTextObject(DVPSTextObject *text);
00110 
00116   DVPSTextObject *removeTextObject(size_t idx);
00117 
00123   void setLog(OFConsole *stream, OFBool verbMode, OFBool dbgMode);
00124 
00125 private:
00128   DVPSTextObject_PList& operator=(const DVPSTextObject_PList&);
00129 
00132   OFList<DVPSTextObject *> list_;
00133 
00136   OFConsole *logstream;
00137 
00140   OFBool verboseMode;
00141    
00144   OFBool debugMode;
00145 
00146 };
00147 
00148 #endif
00149 
00150 /*
00151  *  $Log: dvpstxl.h,v $
00152  *  Revision 1.8  2005/12/08 16:04:09  meichel
00153  *  Changed include path schema for all DCMTK header files
00154  *
00155  *  Revision 1.7  2003/06/04 10:18:06  meichel
00156  *  Replaced private inheritance from template with aggregation
00157  *
00158  *  Revision 1.6  2001/09/26 15:36:18  meichel
00159  *  Adapted dcmpstat to class OFCondition
00160  *
00161  *  Revision 1.5  2001/06/01 15:50:24  meichel
00162  *  Updated copyright header
00163  *
00164  *  Revision 1.4  2000/06/02 16:00:54  meichel
00165  *  Adapted all dcmpstat classes to use OFConsole for log and error output
00166  *
00167  *  Revision 1.3  2000/03/08 16:28:58  meichel
00168  *  Updated copyright header.
00169  *
00170  *  Revision 1.2  1998/12/14 16:10:37  meichel
00171  *  Implemented Presentation State interface for graphic layers,
00172  *    text and graphic annotations, presentation LUTs.
00173  *
00174  *  Revision 1.1  1998/11/27 14:50:35  meichel
00175  *  Initial Release.
00176  *
00177  *
00178  */
00179 


Generated on 20 Dec 2005 for OFFIS DCMTK Version 3.5.4 by Doxygen 1.4.5