#include <Service_Context.h>
Collaboration diagram for TAO_Service_Context:
This class is used to manipulate and access the service context list that is passed around with every GIOP request/reply. The definition of the service context list is simply a sequence of the following structures: typedef unsigned long ServiceId; struct ServiceContext { ServiceId context_id; sequence <octet> context_data; }; typedef sequence <ServiceContext> ServiceContextList;
the real motivation behind this class is to consolidate all the marshalling and unmarshalling information pertaining to service context list
Note: Somewhere down the line we may want to use this class for fast access to the info that we need from the Service Context List.
|
Constructor.
|
|
|
|
|
|
|
|
= Marshaling and demarshaling the list
|
|
|
|
Get a reference to a context identified by id, return 0 if the component is not present. |
|
Get a copy of the context identified by <context.context_id>, return 0 if the component is not present. |
|
Helper methods to implement get_context().
|
|
Is the <id> available in the underlying service context list? If so return 1, else return 0 |
|
|
|
Return the underlying service context list.
|
|
Set the context from the CDR stream and return the context back to the caller. *Does not* modify the underlying service context list. |
|
Set the context from the CDR stream and add that to the service Context list |
|
Insert the component into the list, but efficiently stealing the contents of the octet sequence. |
|
Insert the component into the list, making a copy of the octet sequence. Search the list before insertion so that the insertion does not cause a duplicate context to be in the list. If the replace flag is true, update the specified context. Return 0 if the component was present and the replace flag was not set to true. |
|
= Generic components Insert the component into the list, making a copy of the octet sequence. |
|
|
|
|
|
|
|
Helper methods to implement set_context().
|
|
The ServiceContextList info.
|