OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
CSVWorld::IdValidator Class Reference

#include <idvalidator.hpp>

Inheritance diagram for CSVWorld::IdValidator:
Collaboration diagram for CSVWorld::IdValidator:

Public Member Functions

 IdValidator (bool relaxed=false, QObject *parent=0)
 
virtual State validate (QString &input, int &pos) const
 
void setNamespace (const std::string &namespace_)
 
std::string getError () const
 

Private Member Functions

bool isValid (const QChar &c, bool first) const
 

Private Attributes

bool mRelaxed
 
std::string mNamespace
 
std::string mError
 

Constructor & Destructor Documentation

CSVWorld::IdValidator::IdValidator ( bool  relaxed = false,
QObject parent = 0 
)
Parameters
relaxedRelaxed rules for IDs that also functino as user visible text

Member Function Documentation

std::string CSVWorld::IdValidator::getError ( ) const

Return a description of the error that resulted in the last call of validate returning QValidator::Intermediate. If the last call to validate returned a different value (or if there was no such call yet), an empty string is returned.

bool CSVWorld::IdValidator::isValid ( const QChar &  c,
bool  first 
) const
private
void CSVWorld::IdValidator::setNamespace ( const std::string &  namespace_)

Here is the call graph for this function:

QValidator::State CSVWorld::IdValidator::validate ( QString &  input,
int pos 
) const
virtual

Here is the call graph for this function:

Member Data Documentation

std::string CSVWorld::IdValidator::mError
mutableprivate
std::string CSVWorld::IdValidator::mNamespace
private
bool CSVWorld::IdValidator::mRelaxed
private

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