BusBricks: Content< content_type, representation_type > Class Template Reference
BusBricks  0.1
Customize bus-communication
Loading...
Searching...
No Matches
Content< content_type, representation_type > Class Template Referenceabstract

The cascading of processing information and the rules applied to it lead to the concept of content- and representation. In every iteration, an information is processed and the rules of the next level, closer to the physical layer are applied to it, the information closer to the format the service is able to process is called Content. Conversely, the format, the information has after applying the rules of the next level closer to "Layer-0" is called representation. More...

#include <Content.h>

Public Member Functions

 Content (content_type content)
 Construct a new Content object from an instance from type content_type (content itself)
 
 Content (representation_type representation)
 Construct a new Content object from it's representation from type representation_type.
 
representation_type * get_representation ()
 Get the address of the informations representation of type representation-type.
 
content_type * get_content ()
 Get the address of the informations content of type content_type.
 
bool isValid ()
 Representation and Content of the object are existent (not default)
 

Protected Member Functions

virtual void rep_to_content ()=0
 Defines the mapping from Representation to Content. Convert the class-attribute "representation" to the class-attribute "content". (has to be defined in derived class) (has to be called in the constructor of the derived class)
 
virtual void content_to_rep ()=0
 Defines the mapping from Content to Representation. Convert the class-attribute "content"to the class-attribute "representation" . (has to be defined in derived class) (has to be called in the constructor of the derived class)
 

Protected Attributes

content_type content
 Content of an information (view on information (content) closer to Service-Layer)

 
representation_type representation
 Representation of an information (view on information (content) closer to physical layer)

 

Detailed Description

template<typename content_type, typename representation_type>
class Content< content_type, representation_type >

The cascading of processing information and the rules applied to it lead to the concept of content- and representation. In every iteration, an information is processed and the rules of the next level, closer to the physical layer are applied to it, the information closer to the format the service is able to process is called Content. Conversely, the format, the information has after applying the rules of the next level closer to "Layer-0" is called representation.

Author
Felix Schuelke
Template Parameters
content_typedefines the type for storing the information (content) itself
representation_typedefines the type the information (content) is represented for the next processing-level

Constructor & Destructor Documentation

◆ Content() [1/2]

template<typename content_type , typename representation_type >
Content< content_type, representation_type >::Content ( content_type content)
inline

Construct a new Content object from an instance from type content_type (content itself)

Parameters
contentinformation (content itself) of type content_type

◆ Content() [2/2]

template<typename content_type , typename representation_type >
Content< content_type, representation_type >::Content ( representation_type representation)
inline

Construct a new Content object from it's representation from type representation_type.

Parameters
representationrepresentation of the information (content) from type representation_type

Member Function Documentation

◆ get_content()

template<typename content_type , typename representation_type >
content_type * Content< content_type, representation_type >::get_content ( )
inline

Get the address of the informations content of type content_type.

Returns
content_type*
Here is the caller graph for this function:

◆ get_representation()

template<typename content_type , typename representation_type >
representation_type * Content< content_type, representation_type >::get_representation ( )
inline

Get the address of the informations representation of type representation-type.

Returns
representation_type* pointer to the informations representation
Here is the caller graph for this function:

◆ isValid()

template<typename content_type , typename representation_type >
bool Content< content_type, representation_type >::isValid ( )
inline

Representation and Content of the object are existent (not default)

Returns
true Representation and Content are not default
false Representation or Content do not exist (only defaultvalues)

The documentation for this class was generated from the following file: