GDCM: gdcmCompositeNetworkFunctions.h Source File

GDCM 3.2.6

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{
48 class GDCM_EXPORT CompositeNetworkFunctions
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
gdcm::BaseRootQuery
BaseRootQuery.
Definition gdcmBaseRootQuery.h:67
gdcm::CompositeNetworkFunctions
Composite Network Functions.
Definition gdcmCompositeNetworkFunctions.h:49
gdcm::CompositeNetworkFunctions::KeyValuePairType
std::pair< Tag, std::string > KeyValuePairType
Definition gdcmCompositeNetworkFunctions.h:60
gdcm::CompositeNetworkFunctions::CStore
static bool CStore(const char *remote, uint16_t portno, const Directory::FilenamesType &filenames, const char *aetitle=nullptr, const char *call=nullptr)
gdcm::CompositeNetworkFunctions::KeyValuePairArrayType
std::vector< KeyValuePairType > KeyValuePairArrayType
Definition gdcmCompositeNetworkFunctions.h:61
gdcm::CompositeNetworkFunctions::ConstructQuery
static BaseRootQuery * ConstructQuery(ERootType inRootType, EQueryLevel inQueryLevel, const KeyValuePairArrayType &keys, EQueryType queryType=eFind)
gdcm::CompositeNetworkFunctions::CMove
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)
gdcm::CompositeNetworkFunctions::CEcho
static bool CEcho(const char *remote, uint16_t portno, const char *aetitle=nullptr, const char *call=nullptr)
gdcm::CompositeNetworkFunctions::ConstructQuery
static BaseRootQuery * ConstructQuery(ERootType inRootType, EQueryLevel inQueryLevel, const DataSet &queryds, EQueryType queryType=eFind)
gdcm::CompositeNetworkFunctions::CFind
static bool CFind(const char *remote, uint16_t portno, const BaseRootQuery *query, std::vector< DataSet > &retDataSets, const char *aetitle=nullptr, const char *call=nullptr)
gdcm::DataSet
Class to represent a Data Set (which contains Data Elements).
Definition gdcmDataSet.h:56
gdcm::Directory::FilenamesType
std::vector< FilenameType > FilenamesType
Definition gdcmDirectory.h:49
gdcmBaseRootQuery.h
gdcmDirectory.h
GDCM_EXPORT
#define GDCM_EXPORT
Definition gdcmWin32.h:34
gdcm
Definition gdcmASN1.h:21
gdcm::ERootType
ERootType
Definition gdcmQueryBase.h:29
gdcm::EQueryType
EQueryType
Definition gdcmBaseRootQuery.h:43
gdcm::eFind
@ eFind
Definition gdcmBaseRootQuery.h:44
gdcm::EQueryLevel
EQueryLevel
Definition gdcmBaseRootQuery.h:35