GDCM: gdcmULConnectionInfo.h Source File

GDCM 3.2.8

gdcmULConnectionInfo.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 GDCMULCONNECTIONINFO_H
19#define GDCMULCONNECTIONINFO_H
20
21#include "gdcmUserInformation.h"
22#include <string>
23
24namespace gdcm{
25 namespace network {
38 class ULConnectionInfo {
39 UserInformation mUserInformation;
40
41 std::string mCalledAETitle;
42 std::string mCallingAETitle;
43
44 unsigned long mCalledIPAddress;
45 int mCalledIPPort;
46 std::string mCalledComputerName; //either the IP or the name has to be filled in
47
48 unsigned long mMaxPDULength;
49 public:
50 ULConnectionInfo();
51
52 //it is possible to misinitialize this object, so
53 //have it return false if something breaks (ie, given AEs are bigger than 16 characters,
54 //no name or IP address).
55 bool Initialize(UserInformation const &inUserInformation,
56 const char *inCalledAETitle, const char *inCallingAETitle,
57 unsigned long inCalledIPAddress, int inCalledIPPort,
58 std::string inCalledComputerName);
59
60 //UserInformation GetUserInformation() const;
61 const char* GetCalledAETitle() const;
62 const char* GetCallingAETitle() const;
63
64 unsigned long GetCalledIPAddress() const;
65 int GetCalledIPPort() const;
66 std::string GetCalledComputerName() const;
67
68 //CStore needs to know the max pdu length, so the value gets initialized
69 //when a cstore connection is established (but not for the others).
70 void SetMaxPDULength(unsigned long inMaxPDULength);
71 unsigned long GetMaxPDULength() const;
72 };
73 }
74}
75
76#endif //GDCMULCONNECTIONINFO_H
gdcm::network::ULConnectionInfo::GetCalledComputerName
std::string GetCalledComputerName() const
gdcm::network::ULConnectionInfo::GetCalledIPAddress
unsigned long GetCalledIPAddress() const
gdcm::network::ULConnectionInfo::GetCallingAETitle
const char * GetCallingAETitle() const
gdcm::network::ULConnectionInfo::SetMaxPDULength
void SetMaxPDULength(unsigned long inMaxPDULength)
gdcm::network::ULConnectionInfo::ULConnectionInfo
ULConnectionInfo()
gdcm::network::ULConnectionInfo::GetMaxPDULength
unsigned long GetMaxPDULength() const
gdcm::network::ULConnectionInfo::GetCalledAETitle
const char * GetCalledAETitle() const
gdcm::network::ULConnectionInfo::GetCalledIPPort
int GetCalledIPPort() const
gdcm::network::ULConnectionInfo::Initialize
bool Initialize(UserInformation const &inUserInformation, const char *inCalledAETitle, const char *inCallingAETitle, unsigned long inCalledIPAddress, int inCalledIPPort, std::string inCalledComputerName)
gdcm::network::UserInformation
UserInformation.
Definition gdcmUserInformation.h:44
gdcmUserInformation.h
gdcm::network
Definition gdcmAAbortPDU.h:24
gdcm
Definition gdcmASN1.h:21