/usr/include/odil/SCP.h is in libodil0-dev 0.4.1-1.
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 | /*************************************************************************
* 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 _f4680d8c_18a8_4317_956d_3ae238cb39cc
#define _f4680d8c_18a8_4317_956d_3ae238cb39cc
#include "odil/Association.h"
#include "odil/DataSet.h"
#include "odil/message/Message.h"
#include "odil/message/Request.h"
namespace odil
{
/// @brief Base class for all Service Class Providers.
class SCP
{
public:
/// @brief Abstract base class for SCP returning multiple data sets.
class DataSetGenerator
{
public:
virtual ~DataSetGenerator() =0;
virtual void initialize(message::Request const & request) =0;
virtual bool done() const =0;
virtual void next() =0;
virtual DataSet get() const =0;
};
/// @brief Create a Service Class Provider.
SCP(Association & association);
/// @brief Destructor
virtual ~SCP();
/// @brief Receive and process a message.
void receive_and_process();
/// @brief Process a message.
virtual void operator()(message::Message const & message) =0;
protected:
Association & _association;
};
}
#endif // _f4680d8c_18a8_4317_956d_3ae238cb39cc
|