git-svn-id: svn://ultimatepp.org/upp/trunk@346 f0d560ea-af0d-0410-9eb7-867de7ffcac7

This commit is contained in:
cxl 2008-08-16 18:43:33 +00:00
commit 0c6e098d63
186 changed files with 44447 additions and 0 deletions

31
uppdev/CoreTopics/Topic.h Normal file
View file

@ -0,0 +1,31 @@
#ifndef _Core_Topic_h_
#define _Core_Topic_h_
struct Topic : Moveable<Topic> {
String title;
String text;
String link;
String label;
operator const String&() const { return text; }
operator const char *() const { return text; }
};
struct TopicLink {
String package;
String group;
String topic;
String label;
operator bool() const { return !IsNull(topic); }
};
String TopicLinkString(const TopicLink& tl);
TopicLink ParseTopicLink(const char *link);
Topic GetTopic(const String& package, const String& group, const String& topic);
Topic GetTopic(const char *path);
VectorMap<String, VectorMap<String, Vector<String> > >& TopicBase();
#endif