util to import resource or class More...
#include "ZFObjectIO.h"
Go to the source code of this file.
Namespaces | |
namespace | ZFGlobalEvent |
Functions | |
zfidentity | ZFGlobalEvent::E_ZFImportBegin (void) |
see ZFObject::observerNotify | |
zfidentity | ZFGlobalEvent::E_ZFImportEnd (void) |
see ZFObject::observerNotify | |
zfauto | zfimport (const zfstring &path, const ZFPathInfo &pathInfo=(zft_zfnull)) |
util to import resource or class | |
zfauto | zfimportCacheRemove (const zfstring &callbackId) |
remove the cache created by zfimport | |
void | zfimportCacheRemoveAll () |
remove all cache created by zfimport | |
util to import resource or class
|
extern |
util to import resource or class
this method is useful for script to achieve "import" or "require" of other script language such as Javascript
what the path and pathInfo means:
how the import works:
about cache logic: