GDCM  2.4.5
gdcmCompositeNetworkFunctions.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0.txt
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  *=========================================================================*/
18 #ifndef GDCMCOMPOSITENETWORKFUNCTIONS_H
19 #define GDCMCOMPOSITENETWORKFUNCTIONS_H
20 
21 #include "gdcmDirectory.h"
22 #include "gdcmBaseRootQuery.h" // EQueryLevel / EQueryType
23 
24 #include <vector>
25 #include <string>
26 
27 namespace gdcm
28 {
49 {
50 public:
57  static bool CEcho( const char *remote, uint16_t portno, const char *aetitle = NULL,
58  const char *call = NULL );
59 
60  typedef std::pair<Tag, std::string> KeyValuePairType;
61  typedef std::vector< KeyValuePairType > KeyValuePairArrayType;
62 
69  static BaseRootQuery* ConstructQuery(ERootType inRootType, EQueryLevel inQueryLevel,
70  const DataSet& queryds, bool inMove = false );
71 
73  static BaseRootQuery* ConstructQuery(ERootType inRootType, EQueryLevel inQueryLevel,
74  const KeyValuePairArrayType& keys, bool inMove = false );
75 
91  static bool CMove( const char *remote, uint16_t portno, const BaseRootQuery* query,
92  uint16_t portscp, const char *aetitle = NULL,
93  const char *call = NULL, const char *outputdir = NULL);
94 
104  static bool CFind( const char *remote, uint16_t portno,
105  const BaseRootQuery* query,
106  std::vector<DataSet> &retDataSets,
107  const char *aetitle = NULL,
108  const char *call = NULL );
109 
117  static bool CStore( const char *remote, uint16_t portno,
118  const Directory::FilenamesType & filenames,
119  const char *aetitle = NULL, const char *call = NULL);
120 };
121 
122 } // end namespace gdcm
123 
124 #endif // GDCMCOMPOSITENETWORKFUNCTIONS_H
BaseRootQuery contains: a baseclass which will produce a dataset for c-find and c-move with patient/s...
Definition: gdcmBaseRootQuery.h:65
Class to represent a Data Set (which contains Data Elements) A Data Set represents an instance of a r...
Definition: gdcmDataSet.h:55
Composite Network Functions These functions provide a generic API to the DICOM functions implemented ...
Definition: gdcmCompositeNetworkFunctions.h:48
#define GDCM_EXPORT
Definition: gdcmWin32.h:34
std::vector< KeyValuePairType > KeyValuePairArrayType
Definition: gdcmCompositeNetworkFunctions.h:61
std::vector< FilenameType > FilenamesType
Definition: gdcmDirectory.h:49
std::pair< Tag, std::string > KeyValuePairType
Definition: gdcmCompositeNetworkFunctions.h:60
ERootType
Definition: gdcmQueryBase.h:28
EQueryLevel
Definition: gdcmBaseRootQuery.h:34
Definition: gdcmASN1.h:20

Generated on Fri Sep 25 2015 17:58:22 for GDCM by doxygen 1.8.9.1
SourceForge.net Logo