GDCM
2.2.0
|
00001 /*========================================================================= 00002 * 00003 * Copyright Insight Software Consortium 00004 * 00005 * Licensed under the Apache License, Version 2.0 (the "License"); 00006 * you may not use this file except in compliance with the License. 00007 * You may obtain a copy of the License at 00008 * 00009 * http://www.apache.org/licenses/LICENSE-2.0.txt 00010 * 00011 * Unless required by applicable law or agreed to in writing, software 00012 * distributed under the License is distributed on an "AS IS" BASIS, 00013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00014 * See the License for the specific language governing permissions and 00015 * limitations under the License. 00016 * 00017 *=========================================================================*/ 00018 #ifndef GDCMCOMPOSITEMESSAGEFACTORY_H 00019 #define GDCMCOMPOSITEMESSAGEFACTORY_H 00020 00021 #include "gdcmPresentationDataValue.h" 00022 #include "gdcmULConnection.h" 00023 00024 namespace gdcm { 00025 class BaseRootQuery; 00026 class File; 00027 namespace network { 00028 class BasePDU; 00037 class CompositeMessageFactory 00038 { 00039 public: 00040 //the echo request only needs a properly constructed PDV. 00041 //find, move, etc, may need something more robust, but since those are 00042 //easily placed into the appropriate pdatapdu in the pdufactory, 00043 //this approach without a base class (but done internally) is useful. 00044 static std::vector<PresentationDataValue> ConstructCEchoRQ(const ULConnection& inConnection); 00045 00046 static std::vector<PresentationDataValue> ConstructCStoreRQ(const ULConnection& inConnection,const File &file); 00047 static std::vector<PresentationDataValue> ConstructCStoreRSP(const DataSet *inDataSet, const BasePDU* inPC); 00048 00049 static std::vector<PresentationDataValue> ConstructCFindRQ(const ULConnection& inConnection, const BaseRootQuery* inRootQuery); 00050 00051 static std::vector<PresentationDataValue> ConstructCMoveRQ(const ULConnection& inConnection, const BaseRootQuery* inRootQuery); 00052 00053 00054 }; 00055 } 00056 } 00057 00058 #endif // GDCMCOMPOSITEMESSAGEFACTORY_H