1 #ifndef NdmspcHttpNCloudEvent_H
2 #define NdmspcHttpNCloudEvent_H
30 NCloudEvent(std::string
id =
"0", std::string source =
"unknown", std::string specVersion =
"1.0",
31 std::string type =
"unknown");
48 virtual void Clear(Option_t * opt =
"");
54 virtual void Print(Option_t * opt =
"")
const;
Represents a CloudEvent object for HTTP communication.
void SetType(std::string type)
Sets the event type.
std::string fType
Event type.
bool IsValid() const
Checks if the event is valid.
void HandleNCloudEventRequest(THttpCallArg *arg)
Handles an HTTP request for a CloudEvent.
void SetDatacontentType(std::string datacontenttype)
Sets the event data content type.
std::string fSource
Event source URI-reference.
bool fIsValid
Validity flag for the event.
virtual ~NCloudEvent()
Destroys the NCloudEvent instance.
NCloudEvent(std::string id="0", std::string source="unknown", std::string specVersion="1.0", std::string type="unknown")
Constructs a new NCloudEvent with specified parameters.
std::string GetInfo() const
Gets additional event information.
void SetData(std::string data)
Sets the event data payload.
void SetSpecVersion(std::string specVersion)
Sets the CloudEvent specification version.
std::string GetSpecVersion() const
Gets the CloudEvent specification version.
std::string GetDatacontentType() const
Gets the event data content type.
std::string GetSource() const
Gets the event source URI.
std::string fDataContentType
Event data content type.
void SetId(std::string id)
Sets the event identifier.
std::string fData
Event data payload.
std::string fId
Event identifier.
std::string GetId() const
Gets the event identifier.
std::string fSpecVersion
CloudEvent specification version.
virtual void Clear(Option_t *opt="")
Clears the event data.
std::string GetData() const
Gets the event data payload.
virtual void Print(Option_t *opt="") const
Prints the event details.
void SetSource(std::string source)
Sets the event source URI.
std::string GetType() const
Gets the event type.