Qore Qorize Module Reference
0.1.2
|
public Qorize namespace contains all relevant stuff for this module More...
Functions | |
string | qorize (auto val, string name='var', bool newstyle=True) |
create code from the any value - fallback for NULL and NOTHINGS More... | |
string | qorize (binary val, string name='var', bool newstyle=True) |
create code from the binary value More... | |
string | qorize (bool val, string name='var', bool newstyle=True) |
create code from the boolean value More... | |
string | qorize (date val, string name='var', bool newstyle=True) |
create code from the date value More... | |
string | qorize (float val, string name='var', bool newstyle=True) |
create code from the float value More... | |
string | qorize (hash val, string name='var', bool newstyle=True, int indentation=2, bool curlyHash=True) |
create code from the hash value More... | |
string | qorize (int val, string name='var', bool newstyle=True) |
create code from the integer value More... | |
string | qorize (list val, string name='var', bool newstyle=True, int indentation=2, bool curlyHash=True) |
create code from the list value More... | |
string | qorize (number val, string name='var', bool newstyle=True) |
create code from the number value More... | |
string | 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 (string val, string name='var', bool newstyle=True) |
create code from the string value More... | |
string | qorize_named (auto val, string name='var', bool newstyle=True) |
Process other types normal way using qorize(). | |
string | 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_named (list val, string name='var', bool newstyle=True) |
create code from the list value. More... | |
string | 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_val (auto val) |
create code without any variable assignment (lvalue) More... | |
string | qorize_val (hash val, int indentation=2, bool curlyHash=True) |
create code without any variable assignment (lvalue) More... | |
string | qorize_val (list val, int indentation=2, bool curlyHash=True) |
create code without any variable assignment (lvalue) More... | |
deprecated string | qorizeNamed (hash val, string name='var', bool newstyle=True) |
Deprecated, use qorize_named() instead. | |
public Qorize namespace contains all relevant stuff for this module
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |