34 #include "dcmtk/config/osconfig.h"
36 #include "dcmtk/dcmdata/dctk.h"
38 #include "dcmtk/ofstd/ofstream.h"
39 #include "dcmtk/ofstd/oftypes.h"
40 #include "dcmtk/ofstd/ofcond.h"
41 #include "dcmtk/oflog/oflog.h"
45 #define DCMSR_TRACE(msg) OFLOG_TRACE(DCM_dcmsrGetLogger(), msg)
46 #define DCMSR_DEBUG(msg) OFLOG_DEBUG(DCM_dcmsrGetLogger(), msg)
47 #define DCMSR_INFO(msg) OFLOG_INFO(DCM_dcmsrGetLogger(), msg)
48 #define DCMSR_WARN(msg) OFLOG_WARN(DCM_dcmsrGetLogger(), msg)
49 #define DCMSR_ERROR(msg) OFLOG_ERROR(DCM_dcmsrGetLogger(), msg)
50 #define DCMSR_FATAL(msg) OFLOG_FATAL(DCM_dcmsrGetLogger(), msg)
58 #define OFFIS_CODING_SCHEME_DESIGNATOR "99_OFFIS_DCMTK"
60 #define OFFIS_CODING_SCHEME_NAME "OFFIS DCMTK Coding Scheme"
62 #define OFFIS_RESPONSIBLE_ORGANIZATION "OFFIS e.V., Escherweg 2, 26121 Oldenburg, Germany"
65 #define HTML_HYPERLINK_PREFIX_FOR_CGI "http://localhost/dicom.cgi"
67 #define DCMTK_INTERNET_URL "http://dicom.offis.de/dcmtk"
70 #define DCMSR_XML_NAMESPACE_URI "http://dicom.offis.de/dcmsr"
72 #define DCMSR_XML_XSD_FILE "dsr2xml.xsd"
74 #define XML_SCHEMA_INSTANCE_URI "http://www.w3.org/2001/XMLSchema-instance"
104 extern const OFCondition SR_EC_InvalidDocumentTree;
107 extern const OFCondition SR_EC_MandatoryAttributeMissing;
119 extern const OFCondition SR_EC_UnknownRelationshipType;
122 extern const OFCondition SR_EC_InvalidByValueRelationship;
125 extern const OFCondition SR_EC_InvalidByReferenceRelationship;
128 extern const OFCondition SR_EC_SOPInstanceNotFound;
131 extern const OFCondition SR_EC_DifferentSOPClassesForAnInstance;
134 extern const OFCondition SR_EC_CodingSchemeNotFound;
137 extern const OFCondition SR_EC_CorruptedXMLStructure;
958 const OFBool writeEmptyValue = OFFalse);
1000 const size_t flags = 0,
1001 const OFBool newlineAllowed = OFFalse);
1061 const char *moduleName = NULL);
1111 const OFBool convertNonASCII = OFFalse);
1136 const OFBool allowEmpty = OFTrue);
1153 const char *moduleName = NULL);
1171 const char *moduleName = NULL);
1192 const char *moduleName = NULL);
1204 const char *location = NULL);
1216 const char *location = NULL);
1224 const char *readValue = NULL,
1225 const char *action =
"Reading");
1238 const OFBool writeEmptyValue = OFFalse);
1252 const OFBool writeEmptyValue = OFFalse);
1266 STD_NAMESPACE ostream &annexStream,
1268 size_t &annexNumber,
1269 const size_t flags = 0);
1282 STD_NAMESPACE ostream &footnoteStream,
1283 size_t &footnoteNumber,
1284 const size_t nodeID,
1285 const size_t flags = 0);
1295 OFOStringStream &tempStream,
1296 const char *heading = NULL);