ultimatepp/uppsrc/Core/Topic.h
cxl 7796fbd145 GetTopicLNG
git-svn-id: svn://ultimatepp.org/upp/trunk@737 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2009-01-09 16:40:08 +00:00

32 lines
717 B
C

#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);
Topic GetTopicLNG(const char *path);
VectorMap<String, VectorMap<String, Vector<String> > >& TopicBase();
#endif