vrecko
virtual reality framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ObjectAdd.cpp File Reference
#include "precompiled.h"
#include <vreckoAP/EditorQAbilities/ObjectAdd.h>
#include <sstream>
#include <helpers/HelperMacros.h>
#include <vrecko/EnvironmentObject.h>
#include <vrecko/World.h>
#include <vrecko/Scene.h>
#include "dirent.h"

Namespaces

namespace  APEditorQAbilities
 

Macros

#define DECLARE_SEARCH_STRUCTS
 
#define SEARCH_INIT(dirStr)   { findDir = opendir(dirStr); if (findDir) findDirEnt = readdir(findDir); }
 
#define SEARCH_START_OK   (findDir && findDirEnt)
 
#define SEARCH_FILENAME   findDirEnt->d_name
 
#define SEARCH_NEXT_FILE_OK   (findDirEnt = readdir(findDir))
 
#define SEARCH_DONE   { closedir(findDir); }
 

Macro Definition Documentation

#define DECLARE_SEARCH_STRUCTS
Value:
DIR *findDir; \
struct dirent *findDirEnt;
#define SEARCH_DONE   { closedir(findDir); }
#define SEARCH_FILENAME   findDirEnt->d_name
#define SEARCH_INIT (   dirStr)    { findDir = opendir(dirStr); if (findDir) findDirEnt = readdir(findDir); }
#define SEARCH_NEXT_FILE_OK   (findDirEnt = readdir(findDir))
#define SEARCH_START_OK   (findDir && findDirEnt)