FileOps.h
Go to the documentation of this file.
//-----------------------------------------------------------------------------
//
// FileOps.h
//
// Cross-platform File Operations
//
// Copyright (c) 2012 Greg Satz <satz@iranger.com>
// All rights reserved.
//
// SOFTWARE NOTICE AND LICENSE
//
// This file is part of OpenZWave.
//
// OpenZWave is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published
// by the Free Software Foundation, either version 3 of the License,
// or (at your option) any later version.
//
// OpenZWave is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with OpenZWave. If not, see <http://www.gnu.org/licenses/>.
//
//-----------------------------------------------------------------------------
#ifndef _FileOps_H
#define _FileOps_H
#include <stdarg.h>
#include <string>
#include "Defs.h"
namespace OpenZWave
{
class FileOpsImpl;
class FileOps
{
public:
static FileOps* Create();
static void Destroy();
static bool FolderExists( const string &_folderName );
private:
FileOps();
~FileOps();
static FileOpsImpl* m_pImpl; // Pointer to an object that encapsulates the platform-specific implementation of the FileOps.
static FileOps* s_instance;
};
} // namespace OpenZWave
#endif //_FileOps_H
OpenZWave
Definition: Bitfield.h:34
Defs.h
OpenZWave::FileOps::Destroy
static void Destroy()
Definition: FileOps.cpp:64
OpenZWave::FileOps::FolderExists
static bool FolderExists(const string &_folderName)
Definition: FileOps.cpp:76
OpenZWave::FileOps
Implements platform-independent File Operations.
Definition: FileOps.h:41
OpenZWave::FileOps::Create
static FileOps * Create()
Definition: FileOps.cpp:49
OpenZWave::FileOpsImpl
Definition: windows/FileOpsImpl.h:38