DAnCE  ..
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Static Public Member Functions | List of all members
RM_Helper Class Reference

#include <RM_Helper.h>

Collaboration diagram for RM_Helper:
Collaboration graph

Static Public Member Functions

static void pc_to_cdr (const Deployment::PackageConfiguration &pc, TAO_OutputCDR &cdr)
 
static void cdr_to_pc (Deployment::PackageConfiguration &pc, TAO_InputCDR &cdr)
 
static bool externalize (const Deployment::PackageConfiguration &pc, const char *path)
 
static bool reincarnate (Deployment::PackageConfiguration &pc, const char *path)
 
static bool copy_from_disk_to_disk (const char *from_path, const char *to_path)
 
static bool write_to_disk (const char *full_path, ACE_Message_Block &mb, bool replace=true)
 
static bool write_pc_to_disk (const char *full_path, ACE_Message_Block &mb, bool replace=true)
 
static ACE_Message_Blockread_pc_from_disk (const char *full_path, size_t &length)
 

Member Function Documentation

void RM_Helper::cdr_to_pc ( Deployment::PackageConfiguration pc,
TAO_InputCDR cdr 
)
static
bool RM_Helper::copy_from_disk_to_disk ( const char *  from_path,
const char *  to_path 
)
static

Function that copies the file from a specified location to another specified location on the hard disk.

Return values
trueon success
falseon error

This function attempts to copy the file from a specified location to another specified location on the hard disk.

bool RM_Helper::externalize ( const Deployment::PackageConfiguration pc,
const char *  path 
)
static
void RM_Helper::pc_to_cdr ( const Deployment::PackageConfiguration pc,
TAO_OutputCDR cdr 
)
static
ACE_Message_Block * RM_Helper::read_pc_from_disk ( const char *  full_path,
size_t &  length 
)
static

Function to read the contents of a file from disk into an ACE_Message_Block returns a pointer to an ACE_Message_Block and updates the lenght on success

Return values
0on failure

Function to read the contents of a file from disk into an ACE_Message_Block returns a pointer to an ACE_Message_Block and updates the lenght on success 0 on failure

bool RM_Helper::reincarnate ( Deployment::PackageConfiguration pc,
const char *  path 
)
static
bool RM_Helper::write_pc_to_disk ( const char *  full_path,
ACE_Message_Block mb,
bool  replace = true 
)
static

Function that writes out a file to a specified location on the hard disk

Return values
trueon success
falseon already exists and replace == false
0on error
Note
This function is relevant for PackageConfigurations ONLY

This function attempts to write a sequence of bytes from an ACE_Message_Block to a specified location. A 0 is returned in the case of an error and a 1 upon success

Note
This function write the contents in a way that preserves the structure of the ACE_Message_Block. It is relevant for PackageConfigurations ONLY
bool RM_Helper::write_to_disk ( const char *  full_path,
ACE_Message_Block mb,
bool  replace = true 
)
static

Function that writes out a file to a specified location on the hard disk

Return values
trueon success
falseon already exists and replace == false
falseon error

This function attempts to write a sequence of bytes from an ACE_Message_Block to a specified location. A 0 is returned in the case of an error and a 1 upon success


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