Giter Club home page Giter Club logo

mwf's Introduction

GitHub version Code Climate Codeship Status for invicnaper/MWF MWF

alt text

MWF is a web framework written in C++

Github page ==> link

Source code

Download the source code and than build them using :

$make compil

Code Example

Param :

    #include "mwf.h"
    int main(){
        Mwu::Frame frame("Param testing", "description");
        Mw::Html html;
        Mw::Methods m;
        Mw::Function funct;
        int a ;
        if(funct.url_isset()){
                a = m.i_GET("a");
                print << "a = " << a ; 
        }else{
                print << "<b>no param</b>";
        }
        return 0;
    }

this will check if the query string exist and then will print the content of the param "a"

Error Handling

show error type and line of the function that handle this error in the .cpp file

alt text

Mwf lib

Linux :

you can download the .deb package or the mwf installer in libmwflin

Windows :

soon

Documentation

##Mwu::Frame

    void 	init (const char *title, const char *description)
    void 	fload (const char *module)
    void 	end ()
    Frame(const char* title, const char * descr);
	~Frame();

##Mw::List

    SmwList * 	s_init (SmwList *list)
    DmwList * 	d_init (DmwList **list)
    SmwList * 	s_del (SmwList *list)
    DmwList * 	d_del (DmwList **list)
    list * 	sConstruct ()
    list * 	dConstruct ()
    int 	sprint (SmwList *list, char c)
    int 	dprint (DmwList **list, char *string)
    int 	sexec (SmwList *list)
    int 	dexec (DmwList **list)
    SmwList * 	p_sprint (SmwList *list, char c)
    DmwList * 	p_dprint (DmwList **list, char *string)
    SmwList * 	show (SmwList *list)

##Mw::Html

    void 	link (const char *string, const char *href, const char *style)
    void 	p (const char *string, const char *style)
    void 	h (const char *string, int type, const char *style)
    void 	img (const char *src, int heigh, int width)
    void 	css_local (const char *file, const char *type)
    void 	div (const char *style)
    void 	span (const char *style)
    void 	ul (const char *style)
    void 	li (const char *style)
    void 	code (const char *string, const char *style)
    void 	js_local (const char *file)
    void 	css_web (const char *href, const char *type)
    void 	js_web (const char *href)
    void 	checkbox (char *string, const char *style)

##Mw::Methods

    char * 	GET (char *param)
    char * 	POST (const char *param)
    int 	i_GET (char param[1025])
    void 	redirect (const char *href)

##Mw::Time

    clock_t 	load_page ()
    clock_t 	load_composent ()
    clock_t 	load_list (SmwList *list)
    clock_t 	currentTime ()
    double 	loadedTime (clock_t start, clock_t end)
    void 	draw_time (clock_t start, clock_t end, int type)

##Mw::Function

    void 	removeChr (char *str, char c)
    void 	removeNbr (char *str)
    void 	getNbr (char *str)
    void 	removeStr (char *str, const char *r)
    char * 	parsing_url (char *s, char *param)
    int 	url_isset ()
    int 	isset (char *mod)

mwf's People

Contributors

invicnaper avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.