as2js: as2js::Database::Element Class Reference

as2js::Database::Element Class Reference

#include <db.h>

Collaboration diagram for as2js::Database::Element:
Public Types typedef std::shared_ptr< Elementpointer_t   Public Member Functions  Element (String const &element_name, JSON::JSONValue::pointer_t element)   String get_element_name () const   String get_filename () const   Position::counter_t get_line () const   String get_type () const   void set_filename (String const &filename)   void set_line (Position::counter_t line)   void set_type (String const &type)   Private Attributes JSON::JSONValue::pointer_t f_element = JSON::JSONValue::pointer_t()   String const f_element_name   String f_filename = String()   Position::counter_t f_line = Position::DEFAULT_COUNTER   String f_type = String()   Detailed Description

Definition at line 65 of file db.h.

Member Typedef Documentation
typedef std::shared_ptr<Element> as2js::Database::Element::pointer_t

Definition at line 68 of file db.h.

Constructor & Destructor Documentation Member Function Documentation
String as2js::Database::Element::get_element_name ( ) const

Definition at line 130 of file db.cpp.

References f_element_name.

String as2js::Database::Element::get_filename ( ) const

Definition at line 142 of file db.cpp.

References f_filename.

Position::counter_t as2js::Database::Element::get_line ( ) const

Definition at line 148 of file db.cpp.

References f_line.

String as2js::Database::Element::get_type ( ) const

Definition at line 136 of file db.cpp.

References f_type.

void as2js::Database::Element::set_filename ( String const &  filename)

Definition at line 115 of file db.cpp.

References f_element, and f_filename.

void as2js::Database::Element::set_line ( Position::counter_t  line)

Definition at line 122 of file db.cpp.

References f_element, and f_line.

void as2js::Database::Element::set_type ( String const &  type)

Definition at line 108 of file db.cpp.

References f_element, and f_type.

Member Data Documentation
JSON::JSONValue::pointer_t as2js::Database::Element::f_element = JSON::JSONValue::pointer_t() private

Definition at line 87 of file db.h.

Referenced by Element(), set_filename(), set_line(), and set_type().

String const as2js::Database::Element::f_element_name private

Definition at line 82 of file db.h.

Referenced by get_element_name().

String as2js::Database::Element::f_filename = String() private

Definition at line 84 of file db.h.

Referenced by Element(), get_filename(), and set_filename().

Position::counter_t as2js::Database::Element::f_line = Position::DEFAULT_COUNTER private

Definition at line 85 of file db.h.

Referenced by Element(), get_line(), and set_line().

String as2js::Database::Element::f_type = String() private

Definition at line 83 of file db.h.

Referenced by Element(), get_type(), and set_type().


The documentation for this class was generated from the following files:
  • /home/snapwebsites/snapcpp/contrib/as2js/lib/db.h
  • /home/snapwebsites/snapcpp/contrib/as2js/lib/db.cpp

This document is part of the Snap! Websites Project.

Copyright by Made to Order Software Corp.

Syndicate content

Snap! Websites
An Open Source CMS System in C++

Contact Us Directly