Object Management

Object Import Module Specification

This module will be accessible to administrators only. It will read the zip file containing the .dat files and their images, parse the dat files, load their content into database, search for proper images, crop preview images from them and store them into proper folder on the server. First defined image tile will be used for preview. The tile size will be stored in the database as an attribute of a version.
First screen will ask user for version for which object will be loaded, and path to the zip file. Then the file will be loaded, dats parsed and basic information (found errors) will be printed and user will be asked for the confirmation.
If user confirms the import, data will be imported, overwriting the existing without asking.

Dat File Parsing

Please refer to object specification for the file structure description. For each object, all its attributes will be parsed and stored into the database. The image definition lines will be stored in the img_desc attribute, other attributes will be stored as proper entries in the Properties table. The name of newly created preview image for each object will be stored as image attribute of the object. All preview images will be saved in /images folder on the server. The image name will be by default concatenation of Version_Id and Obj_Name attributes of each object.

 
   
   
   
 



SimuTranslator: ©2004-2005 SimuTranslator Team
Documentation: ©2004-2005 Tomáš Kubeš
SimuTranslator documentation home