CinemaScope
A cross-platform viewer for Cinema databases
Public Types | Signals | Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
CinParameter Class Reference

Manages a parameter for an application. More...

#include <CinParameter.h>

Inheritance diagram for CinParameter:

Public Types

enum  Type {
  UNDEFINED =0, STRING, FLOAT, INT,
  NUMTYPES
}
 

Signals

void valueChanged (const QString &value, int valueID)
 

Public Member Functions

 CinParameter (const QString &name, CinParameter::Type type=CinParameter::UNDEFINED)
 
const QString & getName () const
 
CinParameter::Type getType () const
 
void getValueAsString (QString &value)
 
bool getValueAsString (QString &value, int i)
 
void incrementValue ()
 
void decrementValue ()
 
int getLastID ()
 
int getNumValues ()
 
int getCurID ()
 
void setName (const QString &name)
 
bool setToValueAt (int id)
 
void print ()
 
bool recordValue (int value)
 
bool recordValue (double value)
 
bool recordValue (const QString &value)
 
bool setValue (int value)
 
bool setValue (double value)
 
bool setValue (const QString &value)
 
bool valueExists (int value)
 
bool valueExists (double value)
 
bool valueExists (const QString &value)
 

Static Public Member Functions

static const char * GetNameForType (CinParameter::Type type)
 Convenience function to print names instead of ints. More...
 

Static Public Attributes

static const char * TypeNames [NUMTYPES] = {"UNDEFINED", "STRING", "FLOAT", "INT"}
 
static const char * NAN_VALUE = "NaN"
 
static const char * NULL_VALUE = 0
 
static const float NO_VALUE = -0.0001010101
 
static const float NO_PREV = -0.0002020202
 
static const float NO_NEXT = -0.0003030303
 
static const float NOT_SET = -0.0004040404
 

Detailed Description

Manages a parameter for an application.

Member Function Documentation

◆ GetNameForType()

const char * CinParameter::GetNameForType ( CinParameter::Type  type)
static

Convenience function to print names instead of ints.


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