LunaSysMgr
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ResourceHandler Class Reference

#include <CmdResourceHandlers.h>

Public Member Functions

 ResourceHandler (const std::string &ext, const std::string &contentType, const std::string &appId, bool stream=false)
 
More...
 
 ResourceHandler (const std::string &ext, const std::string &contentType, const std::string &appId, bool stream, const std::string &handler_tag)
 
 ~ResourceHandler ()
 
 ResourceHandler ()
 
 ResourceHandler (const ResourceHandler &c)
 
ResourceHandleroperator= (const ResourceHandler &c)
 
bool operator== (const ResourceHandler &c) const
 
bool operator!= (const ResourceHandler &c) const
 
bool match (const std::string &extension, const std::string &appId, const std::string &mimeType, bool stream) const
 
bool match (const std::string &extension, const std::string &appId, const std::string &mimeType) const
 
bool match (const std::string &appId, const std::string &mimeType) const
 
const std::string & appId () const
 
const std::string & fileExt () const
 
const std::string & contentType () const
 
const std::string & tag () const
 
void setTag (const std::string &newtag)
 
uint32_t index ()
 
uint32_t setIndex (uint32_t newindex)
 
bool stream () const
 
bool valid ()
 
void markInvalid ()
 
bool addVerb (const std::string &verb, const std::string &jsonizedParams)
 
void removeVerb (const std::string &verb)
 
std::string toJsonString ()
 
struct json_object * toJson ()
 
const std::map< std::string,
std::string > & 
verbs ()
 

Friends

class ResourceHandlerNode
 

Detailed Description

Associate a resource file extension and MIME type to the application that can open that resource type.

Constructor & Destructor Documentation

ResourceHandler::ResourceHandler ( const std::string &  ext,
const std::string &  contentType,
const std::string &  appId,
bool  stream = false 
)


ResourceHandler::ResourceHandler ( const std::string &  ext,
const std::string &  contentType,
const std::string &  appId,
bool  stream,
const std::string &  handler_tag 
)
ResourceHandler::~ResourceHandler ( )
inline
ResourceHandler::ResourceHandler ( )
inline
ResourceHandler::ResourceHandler ( const ResourceHandler c)

Member Function Documentation

bool ResourceHandler::addVerb ( const std::string &  verb,
const std::string &  jsonizedParams 
)
const std::string& ResourceHandler::appId ( ) const
inline
const std::string& ResourceHandler::contentType ( ) const
inline
const std::string& ResourceHandler::fileExt ( ) const
inline
uint32_t ResourceHandler::index ( )
inline
void ResourceHandler::markInvalid ( )
inline
bool ResourceHandler::match ( const std::string &  extension,
const std::string &  appId,
const std::string &  mimeType,
bool  stream 
) const
inline
bool ResourceHandler::match ( const std::string &  extension,
const std::string &  appId,
const std::string &  mimeType 
) const
inline
bool ResourceHandler::match ( const std::string &  appId,
const std::string &  mimeType 
) const
inline
bool ResourceHandler::operator!= ( const ResourceHandler c) const
inline
ResourceHandler & ResourceHandler::operator= ( const ResourceHandler c)
bool ResourceHandler::operator== ( const ResourceHandler c) const
inline
void ResourceHandler::removeVerb ( const std::string &  verb)
uint32_t ResourceHandler::setIndex ( uint32_t  newindex)
inline
void ResourceHandler::setTag ( const std::string &  newtag)
inline
bool ResourceHandler::stream ( ) const
inline
const std::string& ResourceHandler::tag ( ) const
inline
struct json_object * ResourceHandler::toJson ( )
read
std::string ResourceHandler::toJsonString ( )
bool ResourceHandler::valid ( )
inline
const std::map<std::string,std::string>& ResourceHandler::verbs ( )
inline

Friends And Related Function Documentation

friend class ResourceHandlerNode
friend

The documentation for this class was generated from the following files: