start working on generating documentation from a model
git-svn-id: svn://ttmath.org/publicrep/morm/trunk@1124 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -68,6 +68,13 @@ void BaseExpression::prepare_to_new_expression()
|
||||
work_mode = 0;
|
||||
}
|
||||
|
||||
|
||||
PT::TextStream * BaseExpression::get_current_stream()
|
||||
{
|
||||
return out_stream;
|
||||
}
|
||||
|
||||
|
||||
void BaseExpression::set_column_prefix(const std::wstring & prefix)
|
||||
{
|
||||
column_prefix = prefix;
|
||||
@@ -91,6 +98,20 @@ void BaseExpression::generate_from_model(Model & model)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
void BaseExpression::put_field_doc(void * pointer)
|
||||
{
|
||||
if( out_stream )
|
||||
{
|
||||
before_generate_from_model();
|
||||
model.doc_field_pointer = pointer;
|
||||
model.map_doc_fields();
|
||||
after_generate_from_model();
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
void BaseExpression::before_generate_from_model()
|
||||
{
|
||||
is_first_field = true;
|
||||
@@ -138,6 +159,15 @@ void BaseExpression::put_field_name(const wchar_t * field_name, bool add_column_
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
void BaseExpression::put_field_doc(Model & model, const void * field_pointer, bool insertable, bool updatable, bool is_primary_key)
|
||||
{
|
||||
model.doc_field_pointer = field_pointer;
|
||||
model.map_doc_fields();
|
||||
model.doc_field_pointer = nullptr;
|
||||
}
|
||||
|
||||
void BaseExpression::before_field_name()
|
||||
{
|
||||
}
|
||||
@@ -348,6 +378,114 @@ void BaseExpression::esc(const PT::Date & date, PT::TextStream & stream)
|
||||
}
|
||||
|
||||
|
||||
void BaseExpression::put_type(char val, PT::TextStream & stream)
|
||||
{
|
||||
stream << "char";
|
||||
}
|
||||
|
||||
void BaseExpression::put_type(unsigned char val, PT::TextStream & stream)
|
||||
{
|
||||
stream << "unsigned char";
|
||||
}
|
||||
|
||||
|
||||
void BaseExpression::put_type(const std::wstring & val, PT::TextStream & stream)
|
||||
{
|
||||
stream << "text";
|
||||
}
|
||||
|
||||
void BaseExpression::put_type(const wchar_t * val, PT::TextStream & stream)
|
||||
{
|
||||
stream << "text";
|
||||
}
|
||||
|
||||
|
||||
void BaseExpression::put_type(const std::string & val, PT::TextStream & stream)
|
||||
{
|
||||
stream << "text";
|
||||
}
|
||||
|
||||
void BaseExpression::put_type(const char * val, PT::TextStream & stream)
|
||||
{
|
||||
stream << "text";
|
||||
}
|
||||
|
||||
|
||||
void BaseExpression::put_type(bool val, PT::TextStream & stream)
|
||||
{
|
||||
stream << "boolean";
|
||||
}
|
||||
|
||||
void BaseExpression::put_type(short val, PT::TextStream & stream)
|
||||
{
|
||||
stream << "short integer";
|
||||
}
|
||||
|
||||
void BaseExpression::put_type(unsigned short val, PT::TextStream & stream)
|
||||
{
|
||||
stream << "unsigned short integer";
|
||||
}
|
||||
|
||||
void BaseExpression::put_type(int val, PT::TextStream & stream)
|
||||
{
|
||||
stream << "integer";
|
||||
}
|
||||
|
||||
void BaseExpression::put_type(unsigned int val, PT::TextStream & stream)
|
||||
{
|
||||
stream << "unsigned integer";
|
||||
}
|
||||
|
||||
void BaseExpression::put_type(long val, PT::TextStream & stream)
|
||||
{
|
||||
stream << "long integer";
|
||||
}
|
||||
|
||||
void BaseExpression::put_type(unsigned long val, PT::TextStream & stream)
|
||||
{
|
||||
stream << "unsigned long integer";
|
||||
}
|
||||
|
||||
void BaseExpression::put_type(long long val, PT::TextStream & stream)
|
||||
{
|
||||
stream << "very long integer";
|
||||
}
|
||||
|
||||
void BaseExpression::put_type(unsigned long long val, PT::TextStream & stream)
|
||||
{
|
||||
stream << "unsigned very long integer";
|
||||
}
|
||||
|
||||
void BaseExpression::put_type(float val, PT::TextStream & stream)
|
||||
{
|
||||
stream << "float";
|
||||
}
|
||||
|
||||
void BaseExpression::put_type(double val, PT::TextStream & stream)
|
||||
{
|
||||
stream << "double";
|
||||
}
|
||||
|
||||
void BaseExpression::put_type(long double val, PT::TextStream & stream)
|
||||
{
|
||||
stream << "long double";
|
||||
}
|
||||
|
||||
//void BaseExpression::put_type(void* val, PT::TextStream & stream)
|
||||
//{
|
||||
//}
|
||||
|
||||
|
||||
void BaseExpression::put_type(const PT::Date & date, PT::TextStream & stream)
|
||||
{
|
||||
stream << "date";
|
||||
}
|
||||
|
||||
void BaseExpression::put_type(const Model & model, PT::TextStream & stream)
|
||||
{
|
||||
stream << "object";
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user