/usr/include/odil/pdu/AAssociate.h is in libodil-dev 0.8.0-4build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 | /*************************************************************************
* odil - Copyright (C) Universite de Strasbourg
* Distributed under the terms of the CeCILL-B license, as published by
* the CEA-CNRS-INRIA. Refer to the LICENSE file or to
* http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
* for details.
************************************************************************/
#ifndef _00e9792a_98a8_4ca7_9272_43dcd7e331ea
#define _00e9792a_98a8_4ca7_9272_43dcd7e331ea
#include <cstdint>
#include <istream>
#include <string>
#include "odil/odil.h"
#include "odil/pdu/ApplicationContext.h"
#include "odil/pdu/Object.h"
#include "odil/pdu/UserInformation.h"
namespace odil
{
namespace pdu
{
/// @brief A-ASSOCIATE-RQ and A-ASSOCIATE-AC PDU, cf. PS 3.8, 9.3.2 and 9.3.3.
class ODIL_API AAssociate: public Object
{
public:
/// @brief Constructor.
AAssociate();
/// @brief Constructor for binary data.
AAssociate(std::istream & stream);
/// @brief Destructor.
virtual ~AAssociate() =0;
/// @brief Return the protocol version.
uint16_t get_protocol_version() const;
/// @brief Set the protocol version.
void set_protocol_version(uint16_t value);
/// @brief Return the called AE title.
std::string get_called_ae_title() const;
/**
* @brief Set the called AE title.
*
* An exception is raised if the value is empty or if it is longer than
* 16 characters.
*/
void set_called_ae_title(std::string const & value);
/// @brief Return the calling AE title.
std::string get_calling_ae_title() const;
/**
* @brief Set the calling AE title.
*
* An exception is raised if the value is empty or if it is longer than
* 16 characters.
*/
void set_calling_ae_title(std::string const & value);
/// @brief Return the Application Context sub-item.
ApplicationContext get_application_context() const;
/// @brief Set the Application Context sub-item.
void set_application_context(ApplicationContext const & value);
/// @brief Return the User Information sub-item.
UserInformation get_user_information() const;
/// @brief Set the User Information sub-item.
void set_user_information(UserInformation const & value);
private:
/// @brief Pad the value with spaces so that it is 16 characters long.
static std::string _encode_ae_title(std::string const & value);
/// @brief Remove the leading and trailing spaces.
static std::string _decode_ae_title(std::string const & value);
};
}
}
#endif // _00e9792a_98a8_4ca7_9272_43dcd7e331ea
|