gdcmCompositeNetworkFunctions.h
Go to the documentation of this file.
/*=========================================================================
*
* Copyright NumFOCUS
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0.txt
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*=========================================================================*/
#ifndef GDCMCOMPOSITENETWORKFUNCTIONS_H
#define GDCMCOMPOSITENETWORKFUNCTIONS_H
#include "gdcmDirectory.h"
#include "gdcmBaseRootQuery.h" // EQueryLevel / EQueryType
#include <vector>
#include <string>
namespace gdcm
{
class GDCM_EXPORT CompositeNetworkFunctions
{
public:
static bool CEcho( const char *remote, uint16_t portno, const char *aetitle = nullptr,
const char *call = nullptr );
typedef std::pair<Tag, std::string> KeyValuePairType;
typedef std::vector< KeyValuePairType > KeyValuePairArrayType;
static BaseRootQuery* ConstructQuery(ERootType inRootType, EQueryLevel inQueryLevel,
const DataSet& queryds, EQueryType queryType = eFind );
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 CFind( const char *remote, uint16_t portno,
const BaseRootQuery* query,
std::vector<DataSet> &retDataSets,
const char *aetitle = nullptr,
const char *call = nullptr );
static bool CStore( const char *remote, uint16_t portno,
const Directory::FilenamesType & filenames,
const char *aetitle = nullptr, const char *call = nullptr);
};
} // end namespace gdcm
#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