function that calculates business days in version 1.2?

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

function that calculates business days in version 1.2?

azzurrino1
Hello, i wanto to know what's the name of the function that calculates business days in the latest version of QuantLib, that is 1.2. In versione 0.3.9, this function is calendar, as you see here  http://quantlib.sourcearchive.com/documentation/0.3.9/calendar_8cpp-source.html
in 1.2?
Reply | Threaded
Open this post in threaded view
|

Re: function that calculates business days in version 1.2?

Luigi Ballabio
The class is still the same.  It's still in calendar.hpp and
calendar.cpp, but the files were moved to the ql/time folder.

Luigi

On Fri, May 18, 2012 at 5:59 PM, azzurrino1 <[hidden email]> wrote:

>
> Hello, i wanto to know what's the name of the function that calculates
> business days in the latest version of QuantLib, that is 1.2. In versione
> 0.3.9, this function is calendar, as you see here
> http://quantlib.sourcearchive.com/documentation/0.3.9/calendar_8cpp-source.html
> in 1.2?
> --
> View this message in context: http://old.nabble.com/function-that-calculates-business-days-in-version-1.2--tp33871078p33871078.html
> Sent from the quantlib-users mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> QuantLib-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/quantlib-users

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: function that calculates business days in version 1.2?

azzurrino1
Thanks
Luigi Ballabio wrote
The class is still the same.  It's still in calendar.hpp and
calendar.cpp, but the files were moved to the ql/time folder.

Luigi

On Fri, May 18, 2012 at 5:59 PM, azzurrino1 <andrea-giglia@hotmail.it> wrote:
>
> Hello, i wanto to know what's the name of the function that calculates
> business days in the latest version of QuantLib, that is 1.2. In versione
> 0.3.9, this function is calendar, as you see here
> http://quantlib.sourcearchive.com/documentation/0.3.9/calendar_8cpp-source.html
> in 1.2?
> --
> View this message in context: http://old.nabble.com/function-that-calculates-business-days-in-version-1.2--tp33871078p33871078.html
> Sent from the quantlib-users mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> QuantLib-users mailing list
> QuantLib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/quantlib-users

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
QuantLib-users mailing list
QuantLib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: function that calculates business days in version 1.2?

azzurrino1
Ok, Luigi Ballabo, but now i have another problem: i must include this function calendar in another function. I made it with the path of my folders and i wrote:

#include <C:/Dev-Cpp/QuantLib-1.2/ql/time/calendar.hpp>
the compiler (i use dev C++) says me that i must also include files "date.hpp" e "businessdayconvention.hpp" and so i made this. But also in this way it doesn't recognize "date" and "businessdayconvention" functions. Why? Do i have to modify the paths of the .hpp files of QuantLib (for example in "calendar" in "date", etc..)? Another doubt is what do i write for using QuantLib. I must write:
"using namespace QuantLib"?  or "namespace QuantLib" ?  or "using namespace quantLib-1.2" ? (i have QuantLib1.2 version). or other? I am principiant with C++ and i ask help to you

azzurrino1 wrote
Thanks
Luigi Ballabio wrote
The class is still the same.  It's still in calendar.hpp and
calendar.cpp, but the files were moved to the ql/time folder.

Luigi

On Fri, May 18, 2012 at 5:59 PM, azzurrino1 <andrea-giglia@hotmail.it> wrote:
>
> Hello, i wanto to know what's the name of the function that calculates
> business days in the latest version of QuantLib, that is 1.2. In versione
> 0.3.9, this function is calendar, as you see here
> http://quantlib.sourcearchive.com/documentation/0.3.9/calendar_8cpp-source.html
> in 1.2?
> --
> View this message in context: http://old.nabble.com/function-that-calculates-business-days-in-version-1.2--tp33871078p33871078.html
> Sent from the quantlib-users mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> QuantLib-users mailing list
> QuantLib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/quantlib-users

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
QuantLib-users mailing list
QuantLib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: function that calculates business days in version 1.2?

Luigi Ballabio
You'll have to add "C:/Dev-Cpp/QuantLib-1.2" to the list of your
include directories (the way to do it depends on your compiler).
After you've done this, you can write
#include <ql/time/calendar.hpp>
and the other includes such as date.hpp will work as well.

As for the namespace, the correct syntax is
using namespace QuantLib;

Luigi


On Mon, May 21, 2012 at 4:45 PM, azzurrino1 <[hidden email]> wrote:

>
> Ok, Luigi Ballabo, but now i have another problem: i must include this
> function calendar in another function. I made it with the path of my folders
> and i wrote:
>
> #include <C:/Dev-Cpp/QuantLib-1.2/ql/time/calendar.hpp>
> the compiler (i use dev C++) says me that i must also include files
> "date.hpp" e "businessdayconvention.hpp" and so i made this. But also in
> this way it doesn't recognize "date" and "businessdayconvention" functions.
> Why? Do i have to modify the paths of the .hpp files of QuantLib (for
> example in "calendar" in "date", etc..)? Another doubt is what do i write
> for using QuantLib. I must write:
> "using namespace QuantLib"?  or "namespace QuantLib" ?  or "using namespace
> quantLib-1.2" ? (i have QuantLib1.2 version). or other? I am principiant
> with C++ and i ask help to you
>
>
> azzurrino1 wrote:
>>
>> Thanks
>>
>> Luigi Ballabio wrote:
>>>
>>> The class is still the same.  It's still in calendar.hpp and
>>> calendar.cpp, but the files were moved to the ql/time folder.
>>>
>>> Luigi
>>>
>>> On Fri, May 18, 2012 at 5:59 PM, azzurrino1 <[hidden email]>
>>> wrote:
>>>>
>>>> Hello, i wanto to know what's the name of the function that calculates
>>>> business days in the latest version of QuantLib, that is 1.2. In
>>>> versione
>>>> 0.3.9, this function is calendar, as you see here
>>>> http://quantlib.sourcearchive.com/documentation/0.3.9/calendar_8cpp-source.html
>>>> in 1.2?
>>>> --
>>>> View this message in context:
>>>> http://old.nabble.com/function-that-calculates-business-days-in-version-1.2--tp33871078p33871078.html
>>>> Sent from the quantlib-users mailing list archive at Nabble.com.
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Live Security Virtual Conference
>>>> Exclusive live event will cover all the ways today's security and
>>>> threat landscape has changed and how IT managers can respond.
>>>> Discussions
>>>> will include endpoint security, mobile security and the latest in
>>>> malware
>>>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>>>> _______________________________________________
>>>> QuantLib-users mailing list
>>>> [hidden email]
>>>> https://lists.sourceforge.net/lists/listinfo/quantlib-users
>>>
>>> ------------------------------------------------------------------------------
>>> Live Security Virtual Conference
>>> Exclusive live event will cover all the ways today's security and
>>> threat landscape has changed and how IT managers can respond. Discussions
>>> will include endpoint security, mobile security and the latest in malware
>>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>>> _______________________________________________
>>> QuantLib-users mailing list
>>> [hidden email]
>>> https://lists.sourceforge.net/lists/listinfo/quantlib-users
>>>
>>>
>>
>>
>
> --
> View this message in context: http://old.nabble.com/function-that-calculates-business-days-in-version-1.2--tp33871078p33883170.html
> Sent from the quantlib-users mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> QuantLib-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/quantlib-users

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: function that calculates business days in version 1.2?

azzurrino1
Adding QuantLib-1.2 in the list my include directories is a oint for which i'm not sure. In the folder C:/Program Files/QuantLib-1.2 there is a file called QuantLib dev. If i open it, i start dev c++ and inserts QuantLib library. It is sufficient to make this and compile my project that calls QuantLib, or i need to make other operations to include QuantLib. Besides, i whis i know where i can find precise instruction step by step for including and linking QuantLib-1.2 in dev C++, and also other libraries in dev C++.
Luigi Ballabio wrote
You'll have to add "C:/Dev-Cpp/QuantLib-1.2" to the list of your
include directories (the way to do it depends on your compiler).
After you've done this, you can write
#include <ql/time/calendar.hpp>
and the other includes such as date.hpp will work as well.

As for the namespace, the correct syntax is
using namespace QuantLib;

Luigi


On Mon, May 21, 2012 at 4:45 PM, azzurrino1 <andrea-giglia@hotmail.it> wrote:
>
> Ok, Luigi Ballabo, but now i have another problem: i must include this
> function calendar in another function. I made it with the path of my folders
> and i wrote:
>
> #include <C:/Dev-Cpp/QuantLib-1.2/ql/time/calendar.hpp>
> the compiler (i use dev C++) says me that i must also include files
> "date.hpp" e "businessdayconvention.hpp" and so i made this. But also in
> this way it doesn't recognize "date" and "businessdayconvention" functions.
> Why? Do i have to modify the paths of the .hpp files of QuantLib (for
> example in "calendar" in "date", etc..)? Another doubt is what do i write
> for using QuantLib. I must write:
> "using namespace QuantLib"?  or "namespace QuantLib" ?  or "using namespace
> quantLib-1.2" ? (i have QuantLib1.2 version). or other? I am principiant
> with C++ and i ask help to you
>
>
> azzurrino1 wrote:
>>
>> Thanks
>>
>> Luigi Ballabio wrote:
>>>
>>> The class is still the same.  It's still in calendar.hpp and
>>> calendar.cpp, but the files were moved to the ql/time folder.
>>>
>>> Luigi
>>>
>>> On Fri, May 18, 2012 at 5:59 PM, azzurrino1 <andrea-giglia@hotmail.it>
>>> wrote:
>>>>
>>>> Hello, i wanto to know what's the name of the function that calculates
>>>> business days in the latest version of QuantLib, that is 1.2. In
>>>> versione
>>>> 0.3.9, this function is calendar, as you see here
>>>> http://quantlib.sourcearchive.com/documentation/0.3.9/calendar_8cpp-source.html
>>>> in 1.2?
>>>> --
>>>> View this message in context:
>>>> http://old.nabble.com/function-that-calculates-business-days-in-version-1.2--tp33871078p33871078.html
>>>> Sent from the quantlib-users mailing list archive at Nabble.com.
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Live Security Virtual Conference
>>>> Exclusive live event will cover all the ways today's security and
>>>> threat landscape has changed and how IT managers can respond.
>>>> Discussions
>>>> will include endpoint security, mobile security and the latest in
>>>> malware
>>>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>>>> _______________________________________________
>>>> QuantLib-users mailing list
>>>> QuantLib-users@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/quantlib-users
>>>
>>> ------------------------------------------------------------------------------
>>> Live Security Virtual Conference
>>> Exclusive live event will cover all the ways today's security and
>>> threat landscape has changed and how IT managers can respond. Discussions
>>> will include endpoint security, mobile security and the latest in malware
>>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>>> _______________________________________________
>>> QuantLib-users mailing list
>>> QuantLib-users@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/quantlib-users
>>>
>>>
>>
>>
>
> --
> View this message in context: http://old.nabble.com/function-that-calculates-business-days-in-version-1.2--tp33871078p33883170.html
> Sent from the quantlib-users mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> QuantLib-users mailing list
> QuantLib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/quantlib-users

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
QuantLib-users mailing list
QuantLib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: function that calculates business days in version 1.2?

Luigi Ballabio
On Tue, May 29, 2012 at 3:18 PM, azzurrino1 <[hidden email]> wrote:
> Adding QuantLib-1.2 in the list my include directories is a oint for which
> i'm not sure. In the folder C:/Program Files/QuantLib-1.2 there is a file
> called QuantLib dev. If i open it, i start dev c++ and inserts QuantLib
> library.

That is the project file that compiles QuantLib.  The directories
should already be set correctly, so it should compile without errors.

> It is sufficient to make this and compile my project that calls
> QuantLib, or i need to make other operations to include QuantLib.

When working on your projects, open the menu "Projects" / "Project
options".  In the tab "Directories", select "Include directories" and
add the path to the QuantLib directory.  In the tab "Parameters",
click on "Add Library or Object" and add libQuantLib-mgw.a

Luigi

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users