mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-10-22 13:17:36 -06:00
git-svn-id: svn://ultimatepp.org/upp/trunk@346 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
2383192b1a
commit
0c6e098d63
186 changed files with 44447 additions and 0 deletions
31
uppdev/CoreTopics/Topic.h
Normal file
31
uppdev/CoreTopics/Topic.h
Normal 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
|
||||
Loading…
Reference in a new issue