Veda/PackResource.h File Reference


Detailed Description

This file applies the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1 , read file COPYING.

Author:
victorien ferry & www.m4nkind.com

Definition in file PackResource.h.

#include "PackStruct.h"
#include "PackULong_Flags.h"
#include "PackString.h"

Go to the source code of this file.

Classes

class  PackResource
 Base type managing a file as a resource. the file can be external, on the disk, or internal, which means linked into the serialized context. In all compilation modes, You get the resource with GetBinary(). In editable mode, you can set a binary file You Set() and Get() a file name relative to the executable path, and choose if it should be linked while serialized, or just read from the file at inition. In all cases, you get the binary with GetBinary() It is used for the automated serialization. More...

Defines

#define REGISTER_MEMBER_RESOURCE(_object, _MemberName, _FileExtension)
 This macro is used to register a serializable member in a class constructor. For editable mode, it uses _MemberName to explicit the use of the member, in order to display it in a GUI for example.


Define Documentation

#define REGISTER_MEMBER_RESOURCE _object,
_MemberName,
_FileExtension   ) 
 

Value:

RegisterSerializableMember(_object);\
_object.SetMemberName( _MemberName );\
_object.SetFileExtension(_FileExtension);
This macro is used to register a serializable member in a class constructor. For editable mode, it uses _MemberName to explicit the use of the member, in order to display it in a GUI for example.

Parameters:
_object 
_MemberName string to display on editor, 0L mean serialized but not edited.
_FileExtension 

Definition at line 301 of file PackResource.h.


      /\/\        4         N         k         !         N         D
                      _______  _ __ ___  _____            ___ _ _  ____
     ___________  __//___   /________  |/    / ___________\_______/    \
    /   _   _   \/   _     /    _   /      _/_/____/    _       __     /
   /    /   /       /     /    /    \      \/     /    /    \   \     /
  \\___/___/___/    ¯    _____/_____/       ______\___/_____/\________\\
               \________/_ ___ __ l____\      /elD!  
                 http://www.m4nkind.com \____/