Numworks Epsilon  1.4.1
Graphing Calculator Operating System
Ion::Storage::Record Class Reference

#include <storage.h>

Inheritance diagram for Ion::Storage::Record:
Code::Script

Classes

struct  Data
 

Public Types

enum  ErrorStatus {
  ErrorStatus::None = 0, ErrorStatus::NameTaken = 1, ErrorStatus::NonCompliantName = 2, ErrorStatus::NotEnoughSpaceAvailable = 3,
  ErrorStatus::RecordDoesNotExist = 4
}
 

Public Member Functions

 Record (const char *name=nullptr)
 
bool operator== (const Record &other) const
 
bool isNull () const
 
const char * name () const
 
ErrorStatus setName (const char *name)
 
Data value () const
 
ErrorStatus setValue (Data data)
 
void destroy ()
 

Friends

class Storage
 

Detailed Description

Definition at line 14 of file storage.h.

Member Enumeration Documentation

◆ ErrorStatus

Enumerator
None 
NameTaken 
NonCompliantName 
NotEnoughSpaceAvailable 
RecordDoesNotExist 

Definition at line 23 of file storage.h.

Constructor & Destructor Documentation

◆ Record()

Ion::Storage::Record::Record ( const char *  name = nullptr)

Definition at line 30 of file storage.cpp.

Member Function Documentation

◆ destroy()

void Ion::Storage::Record::destroy ( )
inline

Definition at line 53 of file storage.h.

◆ isNull()

bool Ion::Storage::Record::isNull ( ) const
inline

Definition at line 38 of file storage.h.

◆ name()

const char* Ion::Storage::Record::name ( ) const
inline

Definition at line 41 of file storage.h.

◆ operator==()

bool Ion::Storage::Record::operator== ( const Record other) const
inline

Definition at line 35 of file storage.h.

◆ setName()

ErrorStatus Ion::Storage::Record::setName ( const char *  name)
inline

Definition at line 44 of file storage.h.

◆ setValue()

ErrorStatus Ion::Storage::Record::setValue ( Data  data)
inline

Definition at line 50 of file storage.h.

◆ value()

Data Ion::Storage::Record::value ( ) const
inline

Definition at line 47 of file storage.h.

Friends And Related Function Documentation

◆ Storage

friend class Storage
friend

Definition at line 21 of file storage.h.


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