RemoteDataPlugin

From user's Wiki!
Revision as of 02:47, 18 January 2012 by Xplanes (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

For Users

This plugin allows to retrieve and send data to a remote computer. Two new entries will be added to the File menu: Open Remote Data and Save Remote Data.

The supported protocols are:

  • SendSpace: Provides a free file hosting service. To upload or download a file from SendSpace, you should use this format: 'http://<user>:<password>@www.sendspace.com/<filepath>'

For Developers

As an example, you can take a look at SendSpaceReader and SendSpaceWriter.

For each protocol, there is a DataEntity reader and a writer. Both should be configured to read/write any kind of data:

m_ValidExtensionsList.push_back( ".*" );
m_ValidTypesList.push_back( Core::DataEntityType( 0xFFFFFFFF ) );

When reading, there are three steps:

  • Remote file is transferred to local computer using a specific temporal local folder with a unique ID
  • Local file is loaded into memory
  • The output DataEntity is published
  • Temporal folder is removed

When writing a file, these are the steps:

  • DataEntity is saved in a temporal folder
  • Local file is transferred to remote computer
  • Temporal folder is removed