libextractor-mono

GNU libextractor
Log | Files | Refs | LICENSE

Keyword.cs (1252B)


      1 // Keyword.cs
      2 // 
      3 // Copyright (C) 2008, 2009 Patrick Ulbrich, zulu99@gmx.net
      4 //
      5 // This program is free software: you can redistribute it and/or modify
      6 // it under the terms of the GNU General Public License as published by
      7 // the Free Software Foundation, either version 3 of the License, or
      8 // (at your option) any later version.
      9 //
     10 // This program is distributed in the hope that it will be useful,
     11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 // GNU General Public License for more details.
     14 //
     15 // You should have received a copy of the GNU General Public License
     16 // along with this program.  If not, see <http://www.gnu.org/licenses/>.
     17 //
     18 
     19 using System;
     20 using System.Runtime.InteropServices;
     21 
     22 namespace LibExtractor
     23 {
     24 	[StructLayout(LayoutKind.Sequential)]
     25 	public class Keyword {
     26 		/* the keyword that was found */
     27 		[MarshalAs(UnmanagedType.LPStr)]
     28 		public string keyword;
     29 		/* the type of the keyword (classification) */
     30 		public KeywordType keywordType;
     31 		/* the next entry in the list */
     32 		internal IntPtr next;
     33 
     34 		public override string ToString() {
     35 			return string.Format("{0} - {1}", Extractor.GetKeywordTypeAsString(keywordType), keyword);
     36 		}
     37 
     38 	}
     39 }