#include <Relationship.h>
This class intends to represent a relationship entry of a rel file of a package part. 
 
◆ Relationship() [1/2]
      
        
          | epc::Relationship::Relationship  | 
          ( | 
          const bool &  | 
          internalTarget = true | ) | 
           | 
        
      
 
Constructor
- Parameters
 - 
  
    | internalTarget | (Optional) True to internal target.  | 
  
   
 
 
◆ Relationship() [2/2]
      
        
          | epc::Relationship::Relationship  | 
          ( | 
          const std::string &  | 
          rsTarget,  | 
        
        
           | 
           | 
          const std::string &  | 
          rsType,  | 
        
        
           | 
           | 
          const std::string &  | 
          rsId,  | 
        
        
           | 
           | 
          const bool &  | 
          internalTarget = true  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Constructor
- Parameters
 - 
  
    | rsTarget | The RS target.  | 
    | rsType | Type of the RS.  | 
    | rsId | Identifier for the RS.  | 
    | internalTarget | (Optional) True to internal target.  | 
  
   
 
 
◆ ~Relationship()
  
  
      
        
          | epc::Relationship::~Relationship  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
default   | 
  
 
 
◆ getId()
      
        
          | const std::string & epc::Relationship::getId  | 
          ( | 
           | ) | 
           const | 
        
      
 
Gets the identifier
- Returns
 - The identifier. 
 
 
 
◆ getTarget()
      
        
          | const std::string & epc::Relationship::getTarget  | 
          ( | 
           | ) | 
           const | 
        
      
 
Gets the target
- Returns
 - The target. 
 
 
 
◆ getType()
      
        
          | const std::string & epc::Relationship::getType  | 
          ( | 
           | ) | 
           const | 
        
      
 
Gets the type
- Returns
 - The type. 
 
 
 
◆ isInternalTarget()
      
        
          | bool epc::Relationship::isInternalTarget  | 
          ( | 
           | ) | 
           const | 
        
      
 
Query if this object is internal target
- Returns
 - True if internal target, false if not. 
 
 
 
◆ setChunkedPartType()
  
  
      
        
          | void epc::Relationship::setChunkedPartType  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ setDestinationMediaType()
  
  
      
        
          | void epc::Relationship::setDestinationMediaType  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Sets destination media type 
 
 
◆ setDestinationObjectType()
  
  
      
        
          | void epc::Relationship::setDestinationObjectType  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Set predefined types to the relationship 
 
 
◆ setExternalPartProxyToMlType()
  
  
      
        
          | void epc::Relationship::setExternalPartProxyToMlType  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Sets external part proxy to miles type 
 
 
◆ setExternalResourceType()
  
  
      
        
          | void epc::Relationship::setExternalResourceType  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Sets external resource type 
 
 
◆ setId()
      
        
          | void epc::Relationship::setId  | 
          ( | 
          const std::string &  | 
          rsId | ) | 
           | 
        
      
 
Set an arbitrary id to the relationship
- Parameters
 - 
  
    | rsId | Identifier for the RS.  | 
  
   
 
 
◆ setIsExternalTarget()
      
        
          | void epc::Relationship::setIsExternalTarget  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ setIsInternalTarget()
      
        
          | void epc::Relationship::setIsInternalTarget  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ setMlToExternalPartProxyType()
  
  
      
        
          | void epc::Relationship::setMlToExternalPartProxyType  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Sets miles to external part proxy type 
 
 
◆ setSourceMediaType()
  
  
      
        
          | void epc::Relationship::setSourceMediaType  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ setSourceObjectType()
  
  
      
        
          | void epc::Relationship::setSourceObjectType  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
◆ setTarget()
      
        
          | void epc::Relationship::setTarget  | 
          ( | 
          const std::string &  | 
          rsTarget | ) | 
           | 
        
      
 
 
◆ setType()
      
        
          | void epc::Relationship::setType  | 
          ( | 
          const std::string &  | 
          rsType | ) | 
           | 
        
      
 
Set an arbitrary type to the relationship
- Parameters
 - 
  
  
 
 
 
◆ toString()
      
        
          | std::string epc::Relationship::toString  | 
          ( | 
           | ) | 
           const | 
        
      
 
Serialize the core property into an XML element embeded into a string.
- Returns
 - A std::string that represents this object. 
 
 
 
The documentation for this class was generated from the following file: