GDCM 3.0.24
gdcmCompositeNetworkFunctions.h
Go to the documentation of this file.
1/*=========================================================================
2 *
3 * Copyright NumFOCUS
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
27namespace gdcm
28{
49{
50public:
57 static bool CEcho( const char *remote, uint16_t portno, const char *aetitle = nullptr,
58 const char *call = nullptr );
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, EQueryType queryType = eFind );
71
73 static BaseRootQuery* ConstructQuery(ERootType inRootType, EQueryLevel inQueryLevel,
74 const KeyValuePairArrayType& keys, EQueryType queryType = eFind );
75
91 static bool CMove( const char *remote, uint16_t portno, const BaseRootQuery* query,
92 uint16_t portscp, const char *aetitle = nullptr,
93 const char *call = nullptr, const char *outputdir = nullptr);
94
104 static bool CFind( const char *remote, uint16_t portno,
105 const BaseRootQuery* query,
106 std::vector<DataSet> &retDataSets,
107 const char *aetitle = nullptr,
108 const char *call = nullptr );
109
117 static bool CStore( const char *remote, uint16_t portno,
118 const Directory::FilenamesType & filenames,
119 const char *aetitle = nullptr, const char *call = nullptr);
120};
121
122} // end namespace gdcm
123
124#endif // GDCMCOMPOSITENETWORKFUNCTIONS_H
BaseRootQuery.
Definition gdcmBaseRootQuery.h:67
Composite Network Functions.
Definition gdcmCompositeNetworkFunctions.h:49
std::pair< Tag, std::string > KeyValuePairType
Definition gdcmCompositeNetworkFunctions.h:60
static bool CStore(const char *remote, uint16_t portno, const Directory::FilenamesType &filenames, const char *aetitle=nullptr, const char *call=nullptr)
std::vector< KeyValuePairType > KeyValuePairArrayType
Definition gdcmCompositeNetworkFunctions.h:61
static BaseRootQuery * ConstructQuery(ERootType inRootType, EQueryLevel inQueryLevel, const KeyValuePairArrayType &keys, EQueryType queryType=eFind)
static bool CMove(const char *remote, uint16_t portno, const BaseRootQuery *query, uint16_t portscp, const char *aetitle=nullptr, const char *call=nullptr, const char *outputdir=nullptr)
static bool CEcho(const char *remote, uint16_t portno, const char *aetitle=nullptr, const char *call=nullptr)
static BaseRootQuery * ConstructQuery(ERootType inRootType, EQueryLevel inQueryLevel, const DataSet &queryds, EQueryType queryType=eFind)
static bool CFind(const char *remote, uint16_t portno, const BaseRootQuery *query, std::vector< DataSet > &retDataSets, const char *aetitle=nullptr, const char *call=nullptr)
Class to represent a Data Set (which contains Data Elements)
Definition gdcmDataSet.h:56
std::vector< FilenameType > FilenamesType
Definition gdcmDirectory.h:49
#define GDCM_EXPORT
Definition gdcmWin32.h:34
Definition gdcmASN1.h:21
ERootType
Definition gdcmQueryBase.h:29
EQueryType
Definition gdcmBaseRootQuery.h:43
EQueryLevel
Definition gdcmBaseRootQuery.h:35