Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames

LibHTTP4.NewsFeed

Extends
Object
Modifiers
PerObjectConfig

NewsFeed
RSS\RDF Porcessing. Part of [[LibHTTP]]. Either RSS or RDF format is accepted.
''Note:'' the HTML special chars are NOT fixed, you have to do this yourself
''Note:'' Don't pound the webserver with requests, cache your results

Dcoumentation and Information: http://wiki.beyondunreal.com/wiki/LibHTTP

Authors: Michiel 'El Muerte' Hendriks <elmuerte@drunksnipers.com>

Copyright 2003, 2004 Michiel "El Muerte" Hendriks
Released under the Lesser Open Unreal Mod License
http://wiki.beyondunreal.com/wiki/LesserOpenUnrealModLicense

Core.Object
|   
+-- LibHTTP4.NewsFeed

Constants Summary
Inherited Contants from Core.Object
MaxInt, Pi, RF_NotForClient, RF_NotForEdit, RF_NotForServer, RF_Public, RF_Standalone, RF_Transactional, RF_Transient

Variables Summary
boolbSizeBugFix
array<string>data
array<string>line
intlineno
intwordno
Config
intLastUpdate
boolrssEnabled
stringrssHost
stringrssLocation
intrssUpdateInterval
RSSContent
stringChannelDescription
stringChannelLink
stringChannelTitle
array<RDFRentry>Entries
Inherited Variables from Core.Object
Class, Name, ObjectFlags, ObjectInternal[7], Outer

Enumerations Summary
Inherited Enumerations from Core.Object
EAxis, ECamOrientation, EDetailMode, EDrawPivot, ESheerAxis

Structures Summary
RDFRentry
Title, Link, Desc
Inherited Structures from Core.Object
BoundingVolume, Box, Color, CompressedPosition, Coords, FloatBox, Guid, IntBox, InterpCurve, InterpCurvePoint, Matrix, Plane, Quat, Range, RangeVector, Rotator, Scale, TMultiMap, Vector

Functions Summary
functionbool getLine ()))
functionstring getTag (out array<string> Args))
functionstring getToNextTag ()))
functionstring getWord ()))
functionint ParseRDFData (array<string> inp))
functionbool _channel (array<string> Args))
functionbool _item (array<string> Args))
functionbool _rdf ()))
Inherited Functions from Core.Object
!, !=, $, $=, %, &, &&, *, **, *=, +, ++, +=, -, --, -=, / , /=, <, <<, <=, ==, >, >=, >>, >>>, @, @=, Abs, Acos, AllObjects, Asc, Asin, Atan, BeginState, Caps, Ceil, Chr, Clamp, ClassIsChildOf, ClearConfig, ClockwiseFrom, Cos, Created, Cross, Disable, Divide, Dot, DynamicLoadObject, EatStr, Enable, EndState, Eval, Exp, FClamp, FindObject, FMax, FMin, FRand, GetAxes, GetEnum, GetItemName, GetPerObjectNames, GetPropertyText, GetReferencers, GetStateName, GetUnAxes, GotoState, InStr, InterpCurveEval, InterpCurveGetInputDomain, InterpCurveGetOutputRange, Invert, IsA, IsInState, IsOnConsole, IsSoaking, Left, Len, Lerp, Localize, Locs, Log, Loge, Max, Mid, Min, MirrorVectorByNormal, Normal, Normalize, OrthoRotation, PlatformIs64Bit, PlatformIsMacOS, PlatformIsUnix, PlatformIsWindows, QuatFindBetween, QuatFromAxisAndAngle, QuatFromRotator, QuatInvert, QuatProduct, QuatRotateVector, QuatSlerp, QuatToRotator, Rand, RandRange, Repl, ReplaceText, ResetConfig, Right, RotRand, Round, SaveConfig, SetPropertyText, Sin, Smerp, Split, Sqrt, Square, StaticClearConfig, StaticSaveConfig, StopWatch, StrCmp, Tan, VRand, VSize, Warn, ^, ^^, |, ||, ~, ~=


Variables Detail

bSizeBugFix Source code

var bool bSizeBugFix;
if set to false it will not strip the entry size to 512 bytes

data Source code

var protected array<string> data;
@ignore

line Source code

var protected array<string> line;
@ignore

lineno Source code

var protected int lineno;
@ignore

wordno Source code

var protected int wordno;
@ignore

Config

LastUpdate Source code

var(Config) config int LastUpdate;
Last time this source had been fetched, you have to do this yourself

rssEnabled Source code

var(Config) config bool rssEnabled;
true if this feed is enabled

rssHost Source code

var(Config) config string rssHost;
name of this object

rssLocation Source code

var(Config) config string rssLocation;
download location

rssUpdateInterval Source code

var(Config) config int rssUpdateInterval;
minutes between updates, make this a nice value like 45 minutes

RSSContent

ChannelDescription Source code

var(RSSContent) config string ChannelDescription;
Channel description as defined in the RSS file

ChannelLink Source code

var(RSSContent) config string ChannelLink;
Channel link as defined in the RSS file

ChannelTitle Source code

var(RSSContent) config string ChannelTitle;
Channel title as defined in the RSS file

Entries Source code

var(RSSContent) config array<RDFRentry> Entries;
the current content


Structures Detail

RDFRentry Source code

struct RDFRentry
{
var string Desc;
var string Link;
var string Title;
};
RDF\RSS item record
Desc:
description of the RDF Entry
Link:
link of the RDF Entry
Title:
title of the RDF Entry


Functions Detail

getLine Source code

protected function bool getLine ( ) )
fill the line buffer

getTag Source code

protected function string getTag ( out array<string> Args) )
retreive a tag with arguments

getToNextTag Source code

protected function string getToNextTag ( ) )

getWord Source code

protected function string getWord ( ) )
get another word from the buffer

ParseRDFData Source code

function int ParseRDFData ( array<string> inp) )
Main function to parse the input data

_channel Source code

protected function bool _channel ( array<string> Args) )

_item Source code

protected function bool _item ( array<string> Args) )

_rdf Source code

protected function bool _rdf ( ) )


Defaultproperties

defaultproperties
{
    bSizeBugFix=true
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Creation time: Do 14.8.2014 09:58:15.808 - Created with UnCodeX