#include <ListItem.h>
Public Member Functions | |
| ListItem (const std::string &itm) | |
| ListItem (const std::string &itm, const std::string &deftyp) | |
| const std::string & | type () const |
| const std::string & | name () const |
Private Member Functions | |
| void | init (const std::string &itm, const std::string &deftyp) |
Private Attributes | |
| std::string | m_type |
| std::string | m_name |
Definition at line 9 of file ListItem.h.
| ListItem::ListItem | ( | const std::string & | itm | ) | [inline] |
| ListItem::ListItem | ( | const std::string & | itm, | |
| const std::string & | deftyp | |||
| ) | [inline] |
| void ListItem::init | ( | const std::string & | itm, | |
| const std::string & | deftyp | |||
| ) | [inline, private] |
Definition at line 11 of file ListItem.h.
00011 { 00012 int slash_pos = itm.find_first_of("/"); 00013 m_name = (slash_pos > 0) ? itm.substr( slash_pos + 1) : itm; 00014 m_type = (slash_pos > 0) ? itm.substr( 0, slash_pos ) : deftyp; 00015 }
| const std::string& ListItem::type | ( | ) | const [inline] |
| const std::string& ListItem::name | ( | ) | const [inline] |
std::string ListItem::m_type [private] |
Definition at line 10 of file ListItem.h.
std::string ListItem::m_name [private] |
Definition at line 10 of file ListItem.h.
1.4.7