Qore Qorize Module Reference 0.1.2
|
Functions | |
string | Qorize::qorize (auto val, string name='var', bool newstyle=True) |
create code from the any value - fallback for NULL and NOTHINGS More... | |
string | Qorize::qorize (binary val, string name='var', bool newstyle=True) |
create code from the binary value More... | |
string | Qorize::qorize (bool val, string name='var', bool newstyle=True) |
create code from the boolean value More... | |
string | Qorize::qorize (date val, string name='var', bool newstyle=True) |
create code from the date value More... | |
string | Qorize::qorize (float val, string name='var', bool newstyle=True) |
create code from the float value More... | |
string | Qorize::qorize (hash val, string name='var', bool newstyle=True, int indentation=2, bool curlyHash=True) |
create code from the hash value More... | |
string | Qorize::qorize (int val, string name='var', bool newstyle=True) |
create code from the integer value More... | |
string | Qorize::qorize (list val, string name='var', bool newstyle=True, int indentation=2, bool curlyHash=True) |
create code from the list value More... | |
string | Qorize::qorize (number val, string name='var', bool newstyle=True) |
create code from the number value More... | |
string | Qorize::qorize (object val, string name='var', bool newstyle=True, int indentation=2, bool curlyHash=True) |
create code from the object value. Just initializes object with empty constructor. To initilize members use qorize_named() function More... | |
string | Qorize::qorize (string val, string name='var', bool newstyle=True) |
create code from the string value More... | |
string | Qorize::qorize_named (auto val, string name='var', bool newstyle=True) |
Process other types normal way using qorize(). | |
string | Qorize::qorize_named (hash val, string name='var', bool newstyle=True) |
create code from the hash value - with one value per one line More... | |
string | Qorize::qorize_named (list val, string name='var', bool newstyle=True) |
create code from the list value. More... | |
string | Qorize::qorize_named (object val, string name='var', bool newstyle=True) |
create code from the object value, constructor with empty parameters is called and members are created with one member per line. It may not generate valid code as because of private members and overloaded constructor. Circular references are handled to avoid endless loop. More... | |
string | Qorize::qorize_val (auto val) |
create code without any variable assignment (lvalue) More... | |
string | Qorize::qorize_val (hash val, int indentation=2, bool curlyHash=True) |
create code without any variable assignment (lvalue) More... | |
string | Qorize::qorize_val (list val, int indentation=2, bool curlyHash=True) |
create code without any variable assignment (lvalue) More... | |
deprecated string | Qorize::qorizeNamed (hash val, string name='var', bool newstyle=True) |
Deprecated, use qorize_named() instead. | |
string Qorize::qorize | ( | auto | val, |
string | name = 'var' , |
||
bool | newstyle = True |
||
) |
create code from the any value - fallback for NULL and NOTHINGS
val | an input value |
name | an optional name of the resulting variable |
newstyle | an optional argument. True when to use Qore::PO_NEW_STYLE syntax, False otherwise |
string | a generated code |
QORIZE-ERROR | in case of error in code generator |
string Qorize::qorize | ( | binary | val, |
string | name = 'var' , |
||
bool | newstyle = True |
||
) |
create code from the binary value
val | an input value |
name | an optional name of the resulting variable |
newstyle | an optional argument. True when to use Qore::PO_NEW_STYLE syntax, False otherwise |
string | a generated code |
Binary values are encoded in hexadecimal strings.
QORIZE-ERROR | in case of error in code generator |
string Qorize::qorize | ( | bool | val, |
string | name = 'var' , |
||
bool | newstyle = True |
||
) |
create code from the boolean value
val | an input value |
name | an optional name of the resulting variable |
newstyle | an optional argument. True when to use Qore::PO_NEW_STYLE syntax, False otherwise |
string | a generated code |
QORIZE-ERROR | in case of error in code generator |
string Qorize::qorize | ( | date | val, |
string | name = 'var' , |
||
bool | newstyle = True |
||
) |
create code from the date value
val | an input value |
name | an optional name of the resulting variable |
newstyle | an optional argument. True when to use Qore::PO_NEW_STYLE syntax, False otherwise |
string | a generated code |
Relative date values (1D, etc.) are converted to Short Relative Time Format
QORIZE-ERROR | in case of error in code generator |
string Qorize::qorize | ( | float | val, |
string | name = 'var' , |
||
bool | newstyle = True |
||
) |
create code from the float value
val | an input value |
name | an optional name of the resulting variable |
newstyle | an optional argument. True when to use Qore::PO_NEW_STYLE syntax, False otherwise |
string | a generated code |
QORIZE-ERROR | in case of error in code generator |
string Qorize::qorize | ( | hash | val, |
string | name = 'var' , |
||
bool | newstyle = True , |
||
int | indentation = 2 , |
||
bool | curlyHash = True |
||
) |
create code from the hash value
val | an input value |
name | an optional name of the resulting variable |
newstyle | an optional argument. True when to use Qore::PO_NEW_STYLE syntax, False otherwise |
indentation | number of characters to indent inner hashes |
curlyHash | use new style curly parentesis to surround hashes or old style round ones |
string | a generated code |
QORIZE-ERROR | in case of error in code generator |
string Qorize::qorize | ( | int | val, |
string | name = 'var' , |
||
bool | newstyle = True |
||
) |
create code from the integer value
val | an input value |
name | an optional name of the resulting variable |
newstyle | an optional argument. True when to use Qore::PO_NEW_STYLE syntax, False otherwise |
string | a generated code |
QORIZE-ERROR | in case of error in code generator |
string Qorize::qorize | ( | list | val, |
string | name = 'var' , |
||
bool | newstyle = True , |
||
int | indentation = 2 , |
||
bool | curlyHash = True |
||
) |
create code from the list value
val | an input value |
name | an optional name of the resulting variable |
newstyle | an optional argument. True when to use Qore::PO_NEW_STYLE syntax, False otherwise |
indentation | number of characters to indent inner hashes |
curlyHash | use new style curly parentesis to surround hashes or old style round ones |
string | a generated code |
QORIZE-ERROR | in case of error in code generator |
string Qorize::qorize | ( | number | val, |
string | name = 'var' , |
||
bool | newstyle = True |
||
) |
create code from the number value
val | an input value |
name | an optional name of the resulting variable |
newstyle | an optional argument. True when to use Qore::PO_NEW_STYLE syntax, False otherwise |
string | a generated code |
QORIZE-ERROR | in case of error in code generator |
string Qorize::qorize | ( | object | val, |
string | name = 'var' , |
||
bool | newstyle = True , |
||
int | indentation = 2 , |
||
bool | curlyHash = True |
||
) |
create code from the object value. Just initializes object with empty constructor. To initilize members use qorize_named() function
val | an input value |
name | an optional name of the resulting variable |
newstyle | an optional argument. True when to use Qore::PO_NEW_STYLE syntax, False otherwise |
indentation | number of characters to indent inner hashes |
curlyHash | use new style curly parentesis to surround hashes or old style round ones |
string | a generated code |
QORIZE-ERROR | in case of error in code generator |
string Qorize::qorize | ( | string | val, |
string | name = 'var' , |
||
bool | newstyle = True |
||
) |
create code from the string value
val | an input value |
name | an optional name of the resulting variable |
newstyle | an optional argument. True when to use Qore::PO_NEW_STYLE syntax, False otherwise |
string | a generated code |
QORIZE-ERROR | in case of error in code generator |
string Qorize::qorize_named | ( | hash | val, |
string | name = 'var' , |
||
bool | newstyle = True |
||
) |
create code from the hash value - with one value per one line
val | an input value |
name | an optional name of the resulting variable |
newstyle | an optional argument. True when to use Qore::PO_NEW_STYLE syntax, False otherwise |
string | a generated code |
QORIZE-ERROR | in case of error in code generator |
string Qorize::qorize_named | ( | list | val, |
string | name = 'var' , |
||
bool | newstyle = True |
||
) |
create code from the list value.
val | an input value |
name | an optional name of the resulting variable |
newstyle | an optional argument. True when to use Qore::PO_NEW_STYLE syntax, False otherwise |
string | a generated code |
QORIZE-ERROR | in case of error in code generator |
string Qorize::qorize_named | ( | object | val, |
string | name = 'var' , |
||
bool | newstyle = True |
||
) |
create code from the object value, constructor with empty parameters is called and members are created with one member per line. It may not generate valid code as because of private members and overloaded constructor. Circular references are handled to avoid endless loop.
val | an input value |
name | an optional name of the resulting variable |
newstyle | an optional argument. True when to use Qore::PO_NEW_STYLE syntax, False otherwise |
string | a generated code |
QORIZE-ERROR | in case of error in code generator |
string Qorize::qorize_val | ( | auto | val | ) |
create code without any variable assignment (lvalue)
val | an input value |
string | a generated code |
QORIZE-ERROR | in case of error in code generator |
string Qorize::qorize_val | ( | hash | val, |
int | indentation = 2 , |
||
bool | curlyHash = True |
||
) |
create code without any variable assignment (lvalue)
val | an input value |
indentation | number of characters to indent inner hashes |
curlyHash | use new style curly parentesis to surround hashes or old style round ones |
string | a generated code |
QORIZE-ERROR | in case of error in code generator |
string Qorize::qorize_val | ( | list | val, |
int | indentation = 2 , |
||
bool | curlyHash = True |
||
) |
create code without any variable assignment (lvalue)
val | an input value |
indentation | number of characters to indent inner hashes |
curlyHash | use new style curly parentesis to surround hashes or old style round ones |
string | a generated code |
QORIZE-ERROR | in case of error in code generator |