/*--------------------------------------------------------------------------
  Project:  Manual 2D Library - m2d
  File:     resourceAccessor.h

  Copyright (C)2007-2009 Nintendo  All Rights Reserved.

  These coded instructions, statements, and computer programs contain
  proprietary information of Nintendo of America Inc. and/or Nintendo
  Company Ltd., and are protected by Federal copyright law.  They may
  not be disclosed to third parties or copied or duplicated in any form,
  in whole or in part, without the prior written consent of Nintendo.

  $Revision: 1.7 $
 *-------------------------------------------------------------------------*/

#ifndef NTMV_M2D_RESOURCEACCESSOR_H_
#define NTMV_M2D_RESOURCEACCESSOR_H_

#if defined(__CWCC__)
#pragma once
#endif

namespace ntmv
{
namespace m2d
{

typedef u32 ResType;

class ResourceAccessor
{
public:
    virtual             ~ResourceAccessor();

    virtual void*       GetResource(
                            ResType     resType,
                            const char* name
                        ) = 0;

    virtual void*       GetLocalizeResource(
                            ResType     resType,
                            const char* name
                        ) = 0;

    virtual void        SetLanguage(u16 lang)       = 0;

    virtual bool        Exists(
                            ResType     resType,
                            u16         lang,
                            const char* name
                        ) = 0;

protected:
                        ResourceAccessor();
};

}   // namespace m2d
}   // namespace ntmv

/* NTMV_M2D_RESOURCEACCESSOR_H_ */
#endif
