Source code of Windows XP (NT5)
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
///////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2001, Microsoft Corporation All rights reserved.
//
// Module Name:
//
// filelayout.h
//
// Abstract:
//
// This file contains the File layout object definition.
//
// Revision History:
//
// 2001-06-20 lguindon Created.
//
///////////////////////////////////////////////////////////////////////////////
#ifndef _FILELAYOUT_H_
#define _FILELAYOUT_H_
///////////////////////////////////////////////////////////////////////////////
//
// Includes Files.
//
///////////////////////////////////////////////////////////////////////////////
#include "infparser.h"
///////////////////////////////////////////////////////////////////////////////
//
// Class definition.
//
///////////////////////////////////////////////////////////////////////////////
class FileLayout { public: FileLayout(LPSTR originFilename, LPSTR destFilename, DWORD flavorMask) { sprintf(m_OriginFilename,"%s",originFilename); sprintf(m_DestFilename,"%s",destFilename); m_Flavor = flavorMask; m_Next = NULL; m_Previous = NULL; };
BOOL isFlavor(DWORD dwFlavor){ return (dwFlavor & m_Flavor); }; LPSTR getOriginFileName() { return (m_OriginFilename); }; LPSTR getDestFileName() { return (m_DestFilename); }; FileLayout* getNext() { return (m_Next); }; FileLayout* getPrevious() { return (m_Previous); }; void setNext(FileLayout *next) { m_Next = next; }; void setPrevious(FileLayout *previous) { m_Previous = previous; };
private: CHAR m_OriginFilename[MAX_PATH]; CHAR m_DestFilename[MAX_PATH]; DWORD m_Flavor; FileLayout *m_Next; FileLayout *m_Previous; };
#endif //_FILELAYOUT_H_
|