Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | Related Pages

filetype.h

Go to the documentation of this file.
00001 /***************************************************************************
00002                     filetype.h  -  File type identifiers
00003                              -------------------
00004     begin                : Thu Oct 23 2003
00005     copyright            : (C) 2003 by Reality Rift Studios
00006     email                : mattias@realityrift.com
00007  ***************************************************************************
00008 
00009  The contents of this file are subject to the Mozilla Public License Version
00010  1.1 (the "License"); you may not use this file except in compliance with
00011  the License. You may obtain a copy of the License at 
00012  http://www.mozilla.org/MPL/
00013 
00014  Software distributed under the License is distributed on an "AS IS" basis,
00015  WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
00016  for the specific language governing rights and limitations under the
00017  License.
00018 
00019  The Original Code is the NeoEngine, filetype.h
00020 
00021  The Initial Developer of the Original Code is Mattias Jansson.
00022  Portions created by Mattias Jansson are Copyright (C) 2003
00023  Reality Rift Studios. All Rights Reserved.
00024 
00025  ***************************************************************************/
00026 
00027 #ifndef __NEFILETYPE_H
00028 #define __NEFILETYPE_H
00029 
00030 
00037 #ifndef __NEED_VECTOR_STRING
00038 #  define __NEED_VECTOR_STRING
00039 #endif
00040 
00041 #include "base.h"
00042 
00043 #include <vector>
00044 #include <string>
00045 
00046 
00047 namespace NeoEngine
00048 {
00049 
00050 
00051 //External classes
00052 class File;
00053 
00054 
00060 class NEOENGINE_API FiletypeIdentifier
00061 {
00062     protected:
00063     
00065         std::string                                   m_strTypeName;
00066 
00068         std::vector< std::string >                    m_vstrExtensions;
00069                     
00070 
00071     public:
00072 
00077                                                       FiletypeIdentifier( const std::string &rstrFiletypeName, const std::vector< std::string > &rvstrExtensions );
00078 
00082                                                       FiletypeIdentifier( const std::string &rstrFiletypeName );
00083         
00086         virtual                                      ~FiletypeIdentifier();
00087     
00093         virtual bool                                  IsType( File *pkFile ) = 0;
00094 
00098         const std::string                            &GetTypeName() const;
00099         
00103         const std::vector< std::string >             &GetExtensions() const;
00104 };
00105 
00106 
00107 };
00108 
00109 
00110 #endif

Generated on Wed Jan 21 14:21:06 2004 for NeoEngine by doxygen 1.3.5