windows-nt/Source/XPSP1/NT/sdktools/restools/mui/infparser/filelayout.h
2020-09-26 16:20:57 +08:00

63 lines
1.7 KiB
C++

///////////////////////////////////////////////////////////////////////////////
//
// 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_