Current Version: 1.0.10
Project Name: csspp
Public Member Functions | Private Member Functions | Private Attributes | List of all members
csspp::assembler Class Reference

#include <assembler.h>

Public Member Functions

 assembler (std::ostream &out)
 
void output (node::pointer_t n, output_mode_t mode)
 

Private Member Functions

std::string escape_id (std::string const &id)
 
void output (node::pointer_t n)
 
void output_at_keyword (node::pointer_t n)
 
void output_comment (node::pointer_t n)
 
void output_component_value (node::pointer_t n)
 
void output_parenthesis (node::pointer_t n, int flags)
 
void output_string (std::string const &str)
 
void output_url (std::string const &str)
 

Private Attributes

std::shared_ptr< assembler_implf_impl
 
std::ostream & f_out
 
node::pointer_t f_root
 

Detailed Description

Definition at line 35 of file assembler.h.

Constructor & Destructor Documentation

csspp::assembler::assembler ( std::ostream &  out)

Definition at line 247 of file assembler.cpp.

Member Function Documentation

std::string csspp::assembler::escape_id ( std::string const &  id)
private
void csspp::assembler::output ( node::pointer_t  n,
output_mode_t  mode 
)
void csspp::assembler::output ( node::pointer_t  n)
private

Definition at line 359 of file assembler.cpp.

References csspp::ADD, csspp::AN_PLUS_B, csspp::AND, csspp::ARG, csspp::ARRAY, csspp::ASSIGNMENT, csspp::AT_KEYWORD, csspp::BOOLEAN, csspp::CDC, csspp::CDO, csspp::CLOSE_CURLYBRACKET, csspp::CLOSE_PARENTHESIS, csspp::CLOSE_SQUAREBRACKET, csspp::COLON, csspp::COLOR, csspp::COLUMN, csspp::COMMA, csspp::COMMENT, csspp::COMPONENT_VALUE, csspp::CONDITIONAL, csspp::DASH_MATCH, csspp::DECIMAL_NUMBER, csspp::decimal_number_to_string(), csspp::DECLARATION, csspp::DIVIDE, csspp::DOLLAR, csspp::EOF_TOKEN, csspp::EQUAL, escape_id(), csspp::EXCLAMATION, f_impl, f_out, csspp::FONT_METRICS, csspp::FUNCTION, csspp::anonymous_namespace{assembler.cpp}::g_flag_optional_operator, csspp::anonymous_namespace{assembler.cpp}::g_flag_optional_space_after, csspp::anonymous_namespace{assembler.cpp}::g_flag_optional_space_after_or_newline, csspp::anonymous_namespace{assembler.cpp}::g_flag_optional_space_before, csspp::anonymous_namespace{assembler.cpp}::g_flag_optional_space_before_or_newline, csspp::anonymous_namespace{assembler.cpp}::g_flag_optional_spaces, csspp::anonymous_namespace{assembler.cpp}::g_flag_optional_spaces_or_newlines, csspp::GREATER_EQUAL, csspp::GREATER_THAN, csspp::HASH, csspp::IDENTIFIER, csspp::INCLUDE_MATCH, csspp::INTEGER, csspp::LESS_EQUAL, csspp::LESS_THAN, csspp::LIST, csspp::MAP, csspp::max_type, csspp::MODULO, csspp::MULTIPLY, csspp::NOT_EQUAL, csspp::NULL_TOKEN, csspp::OPEN_CURLYBRACKET, csspp::OPEN_PARENTHESIS, csspp::OPEN_SQUAREBRACKET, output(), output_at_keyword(), output_comment(), output_component_value(), output_parenthesis(), output_string(), output_url(), csspp::PERCENT, csspp::PERIOD, csspp::PLACEHOLDER, csspp::POWER, csspp::PRECEDED, csspp::PREFIX_MATCH, csspp::REFERENCE, csspp::SCOPE, csspp::SEMICOLON, csspp::STRING, csspp::SUBSTRING_MATCH, csspp::SUBTRACT, csspp::SUFFIX_MATCH, csspp::unicode_range_t::to_string(), csspp::UNICODE_RANGE, csspp::UNKNOWN, csspp::URL, csspp::VARIABLE, csspp::VARIABLE_FUNCTION, csspp::anonymous_namespace{assembler.cpp}::verify_dimension(), and csspp::WHITESPACE.

void csspp::assembler::output_at_keyword ( node::pointer_t  n)
private
void csspp::assembler::output_comment ( node::pointer_t  n)
private

Definition at line 816 of file assembler.cpp.

References f_impl, and f_out.

Referenced by output().

void csspp::assembler::output_component_value ( node::pointer_t  n)
private
void csspp::assembler::output_parenthesis ( node::pointer_t  n,
int  flags 
)
private
void csspp::assembler::output_string ( std::string const &  str)
private

Definition at line 874 of file assembler.cpp.

References f_out.

Referenced by output(), and output_url().

void csspp::assembler::output_url ( std::string const &  str)
private

Member Data Documentation

std::shared_ptr<assembler_impl> csspp::assembler::f_impl
private
std::ostream& csspp::assembler::f_out
private
node::pointer_t csspp::assembler::f_root
private

Definition at line 55 of file assembler.h.

Referenced by output().


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

Documentation of CSS Preprocessor.

This document is part of the Snap! Websites Project.

Copyright by Made to Order Software Corp.