00001 /* 00002 * 00003 * Copyright (C) 1994-2010, OFFIS e.V. 00004 * All rights reserved. See COPYRIGHT file for details. 00005 * 00006 * This software and supporting documentation were developed by 00007 * 00008 * OFFIS e.V. 00009 * R&D Division Health 00010 * Escherweg 2 00011 * D-26121 Oldenburg, Germany 00012 * 00013 * 00014 * Module: dcmnet 00015 * 00016 * Author: Marco Eichelberg 00017 * 00018 * Purpose: 00019 * class DcmUIDHandler 00020 * 00021 * Last Update: $Author: joergr $ 00022 * Update Date: $Date: 2010-10-14 13:17:22 $ 00023 * CVS/RCS Revision: $Revision: 1.3 $ 00024 * Status: $State: Exp $ 00025 * 00026 * CVS/RCS Log at end of file 00027 * 00028 */ 00029 00030 #ifndef DCCFUIDH_H 00031 #define DCCFUIDH_H 00032 00033 #include "dcmtk/config/osconfig.h" 00034 #include "dcmtk/ofstd/ofstring.h" /* for class OFString */ 00035 00048 class DcmUIDHandler 00049 { 00050 public: 00052 DcmUIDHandler(); 00053 00055 DcmUIDHandler(const OFString& arg); 00056 00058 DcmUIDHandler(const char *arg); 00059 00061 DcmUIDHandler(const DcmUIDHandler& arg); 00062 00064 DcmUIDHandler& operator=(const DcmUIDHandler& arg); 00065 00067 DcmUIDHandler& operator=(const OFString& arg); 00068 00070 DcmUIDHandler& operator=(const char *arg); 00071 00073 ~DcmUIDHandler(); 00074 00076 OFBool operator==(const DcmUIDHandler& arg) const 00077 { 00078 return uid_ == arg.uid_; 00079 } 00080 00082 OFBool operator!=(const DcmUIDHandler& arg) const 00083 { 00084 return uid_ != arg.uid_; 00085 } 00086 00090 OFBool isValidUID() const; 00091 00095 const char *c_str() const 00096 { 00097 return uid_.c_str(); 00098 } 00099 00103 const OFString& str() const 00104 { 00105 return uid_; 00106 } 00107 00108 private: 00109 00114 void lookupSymbolicUID(); 00115 00117 OFString uid_; 00118 }; 00119 00120 00121 #endif 00122 00123 /* 00124 * CVS/RCS Log 00125 * $Log: dccfuidh.h,v $ 00126 * Revision 1.3 2010-10-14 13:17:22 joergr 00127 * Updated copyright header. Added reference to COPYRIGHT file. 00128 * 00129 * Revision 1.2 2005/12/08 16:02:15 meichel 00130 * Changed include path schema for all DCMTK header files 00131 * 00132 * Revision 1.1 2003/06/10 14:27:33 meichel 00133 * Initial release of class DcmAssociationConfiguration and support 00134 * classes. This class maintains a list of association negotiation 00135 * profiles that can be addressed by symbolic keys. The profiles may 00136 * be read from a configuration file. 00137 * 00138 * 00139 */