number-opt-number.h revision 2a67507e7a675c7c516ab207418d3a5c7bfe5989
#ifndef SEEN_NUMBER_OPT_NUMBER_H
#define SEEN_NUMBER_OPT_NUMBER_H
/** \file
* <number-opt-number> implementation.
*/
/*
* Authors:
* Hugo Rodrigues <haa.rodrigues@gmail.com>
*
* Copyright (C) 2006 Hugo Rodrigues
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#include <glib.h>
//todo: use glib instead of stdlib
#include <stdlib.h>
#include "svg/stringstream.h"
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
{
number = 0.0;
optNumber = 0.0;
}
{
if(_set)
return number;
return -1;
}
{
if(optNumber_set)
return optNumber;
return -1;
}
{
optNumber_set = true;
}
{
_set = true;
}
{
if( _set )
{
if( optNumber_set )
{
}
else {
}
}
}
{
if(!str)
return;
{
{
}
else
}
else {
}
}
};
#endif /* !SEEN_NUMBER_OPT_NUMBER_H */
/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :