as2js: as2js::Database::Package Class Reference

as2js::Database::Package Class Reference

#include <db.h>

Collaboration diagram for as2js::Database::Package:
Public Types typedef std::shared_ptr< Packagepointer_t   Public Member Functions  Package (String const &package_name, JSON::JSONValue::pointer_t package)   Element::pointer_t add_element (String const &element_name)   element_vector_t find_elements (String const &pattern) const   Element::pointer_t get_element (String const &element_name) const   String get_package_name () const   Private Attributes element_map_t f_elements = element_map_t()   JSON::JSONValue::pointer_t f_package = JSON::JSONValue::pointer_t()   String const f_package_name   Detailed Description

Definition at line 92 of file db.h.

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

Definition at line 95 of file db.h.

Constructor & Destructor Documentation
as2js::Database::Package::Package ( String const &  package_name, JSON::JSONValue::pointer_t  package  )
Member Function Documentation
Database::Element::pointer_t as2js::Database::Package::add_element ( String const &  element_name)

Definition at line 224 of file db.cpp.

References f_elements, f_package, and get_element().

Database::element_vector_t as2js::Database::Package::find_elements ( String const &  pattern) const

Definition at line 198 of file db.cpp.

References f_elements, and as2js::Database::match_pattern().

Database::Element::pointer_t as2js::Database::Package::get_element ( String const &  element_name) const

Definition at line 212 of file db.cpp.

References f_elements.

Referenced by add_element().

String as2js::Database::Package::get_package_name ( ) const

Definition at line 192 of file db.cpp.

References f_package_name.

Member Data Documentation
element_map_t as2js::Database::Package::f_elements = element_map_t() private

Definition at line 109 of file db.h.

Referenced by add_element(), find_elements(), get_element(), and Package().

JSON::JSONValue::pointer_t as2js::Database::Package::f_package = JSON::JSONValue::pointer_t() private

Definition at line 108 of file db.h.

Referenced by add_element(), and Package().

String const as2js::Database::Package::f_package_name private

Definition at line 106 of file db.h.

Referenced by get_package_name().

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