00001 /* 00002 * 00003 * Copyright (C) 1994-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: dcmnet 00019 * 00020 * Author: Marco Eichelberg 00021 * 00022 * Purpose: 00023 * class DcmUIDHandler 00024 * 00025 * Last Update: $Author: meichel $ 00026 * Update Date: $Date: 2005/12/08 16:02:15 $ 00027 * Source File: $Source: /share/dicom/cvs-depot/dcmtk/dcmnet/include/dcmtk/dcmnet/dccfuidh.h,v $ 00028 * CVS/RCS Revision: $Revision: 1.2 $ 00029 * Status: $State: Exp $ 00030 * 00031 * CVS/RCS Log at end of file 00032 * 00033 */ 00034 00035 #ifndef DCCFUIDH_H 00036 #define DCCFUIDH_H 00037 00038 #include "dcmtk/config/osconfig.h" 00039 #include "dcmtk/ofstd/ofstring.h" /* for class OFString */ 00040 00053 class DcmUIDHandler 00054 { 00055 public: 00057 DcmUIDHandler(); 00058 00060 DcmUIDHandler(const OFString& arg); 00061 00063 DcmUIDHandler(const char *arg); 00064 00066 DcmUIDHandler(const DcmUIDHandler& arg); 00067 00069 DcmUIDHandler& operator=(const DcmUIDHandler& arg); 00070 00072 DcmUIDHandler& operator=(const OFString& arg); 00073 00075 DcmUIDHandler& operator=(const char *arg); 00076 00078 ~DcmUIDHandler(); 00079 00081 OFBool operator==(const DcmUIDHandler& arg) const 00082 { 00083 return uid_ == arg.uid_; 00084 } 00085 00087 OFBool operator!=(const DcmUIDHandler& arg) const 00088 { 00089 return uid_ != arg.uid_; 00090 } 00091 00095 OFBool isValidUID() const; 00096 00100 const char *c_str() const 00101 { 00102 return uid_.c_str(); 00103 } 00104 00108 const OFString& str() const 00109 { 00110 return uid_; 00111 } 00112 00113 private: 00114 00119 void lookupSymbolicUID(); 00120 00122 OFString uid_; 00123 }; 00124 00125 00126 #endif 00127 00128 /* 00129 * CVS/RCS Log 00130 * $Log: dccfuidh.h,v $ 00131 * Revision 1.2 2005/12/08 16:02:15 meichel 00132 * Changed include path schema for all DCMTK header files 00133 * 00134 * Revision 1.1 2003/06/10 14:27:33 meichel 00135 * Initial release of class DcmAssociationConfiguration and support 00136 * classes. This class maintains a list of association negotiation 00137 * profiles that can be addressed by symbolic keys. The profiles may 00138 * be read from a configuration file. 00139 * 00140 * 00141 */