GDCM 2.2.1

- Main Page
- Related Pages
- Namespaces
- Classes
- Files
- Examples

- File List
- File Members

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 {
48 class GDCM_EXPORT CompositeNetworkFunctions
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