00001 // Module: Log4CPLUS 00002 // File: tstring.h 00003 // Created: 4/2003 00004 // Author: Tad E. Smith 00005 // 00006 // 00007 // Copyright 2003-2009 Tad E. Smith 00008 // 00009 // Licensed under the Apache License, Version 2.0 (the "License"); 00010 // you may not use this file except in compliance with the License. 00011 // You may obtain a copy of the License at 00012 // 00013 // http://www.apache.org/licenses/LICENSE-2.0 00014 // 00015 // Unless required by applicable law or agreed to in writing, software 00016 // distributed under the License is distributed on an "AS IS" BASIS, 00017 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00018 // See the License for the specific language governing permissions and 00019 // limitations under the License. 00020 00023 #ifndef LOG4CPLUS_TSTRING_HEADER_ 00024 #define LOG4CPLUS_TSTRING_HEADER_ 00025 00026 #include "dcmtk/oflog/config.h" 00027 #include "dcmtk/ofstd/ofstring.h" 00028 00029 #define LOG4CPLUS_TEXT2(STRING) STRING 00030 #define LOG4CPLUS_TEXT(STRING) LOG4CPLUS_TEXT2(STRING) 00031 00032 00033 namespace log4cplus { 00034 typedef char tchar; 00035 typedef OFString tstring; 00036 } 00037 00038 #define LOG4CPLUS_C_STR_TO_TSTRING(STRING) OFString(STRING) 00039 #define LOG4CPLUS_STRING_TO_TSTRING(STRING) STRING 00040 #define LOG4CPLUS_TSTRING_TO_STRING(STRING) STRING 00041 00042 #endif // LOG4CPLUS_TSTRING_HEADER_