summaryrefslogtreecommitdiff
path: root/indra/llvfs/lldir_solaris.h
blob: 1ab76230ee28be2b477a980b7dd1689e511b017f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/** 
 * @file fmodwrapper.cpp
 * @brief dummy source file for building a shared library to wrap libfmod.a
 *
 * Copyright (c) 2005-$CurrentYear$, Linden Research, Inc.
 * $License$
 */

#ifndef LL_LLDIR_SOLARIS_H
#define LL_LLDIR_SOLARIS_H

#include "lldir.h"

#include <stdio.h>
#include <dirent.h>
#include <errno.h>

class LLDir_Solaris : public LLDir
{
public:
	LLDir_Solaris();
	virtual ~LLDir_Solaris();

	virtual void initAppDirs(const std::string &app_name);
public:	
	virtual std::string getCurPath();
	virtual U32 countFilesInDir(const std::string &dirname, const std::string &mask);
	virtual BOOL getNextFileInDir(const std::string &dirname, const std::string &mask, std::string &fname, BOOL wrap);
	virtual void getRandomFileInDir(const std::string &dirname, const std::string &mask, std::string &fname);
	/*virtual*/ BOOL fileExists(const std::string &filename);

private:
	DIR *mDirp;
	int mCurrentDirIndex;
	int mCurrentDirCount;
	std::string mCurrentDir;	
};

#endif // LL_LLDIR_SOLARIS_H