NEOCCA bindings Specification  0.2.8
TimeProducerPort.hh
Go to the documentation of this file.
1 #ifndef __neoTIMEPRODUCERPORT_H__
2 #define __neoTIMEPRODUCERPORT_H__
3 
4 namespace neo {
5 namespace cca {
6 namespace ports {
7 
8 
12 class TimeProducerPort : public virtual neo::cca::Port {
13 private:
14 public:
15 
17  virtual ~TimeProducerPort(){}
18 
20  virtual std::string getTime()= 0;
21 };
22 
23 
24 } // end namespace ports
25 } // end namespace cca
26 } // end namespace neo
27 
28 #endif //__neoTIMEPRODUCERPORT_H__
An example port for an interface for providing a time service.
Definition: TimeProducerPort.hh:12
virtual std::string getTime()=0
Produce the time as a string.
A pure-virtual tag interface to identify a function set capable of being exported to or imported from...
Definition: Port.hh:17
virtual ~TimeProducerPort()
obligatory vdtor
Definition: TimeProducerPort.hh:17
This is neoclassic – the ::classic::gov::cca headers updated to be similar to the official CCA speci...
Definition: neocca.hh:62