/usr/include/odil/pdu/UserInformation.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 | /*************************************************************************
* 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 _7449339a_913f_4545_9846_311f055632c1
#define _7449339a_913f_4545_9846_311f055632c1
#include <initializer_list>
#include <istream>
#include <vector>
#include "odil/odil.h"
#include "odil/pdu/MaximumLength.h"
#include "odil/pdu/Object.h"
#include "odil/pdu/UserIdentityAC.h"
#include "odil/pdu/UserIdentityRQ.h"
namespace odil
{
namespace pdu
{
/// @brief User Information Item Structure (PS 3.8, 9.3.2.3 and 9.3.3.3).
class ODIL_API UserInformation: public Object
{
public:
/// @brief Create a User Information item with no sub-items.
UserInformation();
/// @brief Read a User Information item from a stream.
UserInformation(std::istream & stream);
/// @brief Return sub-items of given type.
template<typename TObject>
std::vector<TObject> get_sub_items() const;
/// @brief Set a sequence of sub-items.
template<typename TObject>
void set_sub_items(std::vector<TObject> const & sub_item);
/// @brief Delete sub-items of given type.
template<typename TObject>
void delete_sub_items();
private:
typedef std::vector<Item> Items;
/// @brief Return the iterators to the sub items of given type.
template<typename TObject>
std::vector<Items::const_iterator> _find_sub_items() const;
/// @brief Return the iterators to the sub items of given type.
template<typename TObject>
std::vector<Items::iterator> _find_sub_items();
};
}
}
#include "odil/pdu/UserInformation.txx"
#endif // _7449339a_913f_4545_9846_311f055632c1
|