Today, the male lines descending from Louis XIV are the Parmas and the BTS's.
Both descend from Louis XIV's second grandson.
I posted the line descending from Louis XIV's first grandson, Felipe V's brother.
The male line passes from father to son from Louis XIV to the Dauphin, son of Louis XV.
The Dauphin had 3 sons Louis XVI, L.XVIII and Charles X.
Louis XVI's only surviving daughter married her cousin the Duke of AngoulÍme, Charles X's elder son, but had no issue.
AngoulÍme's brother was the Duke of Berry.
His only son, the posthumus Henri (V) Conte de Chambord, also died without issue so the line passed to his elder sister Louise who married Robert Duke of Parma.
Robert was succeeded by 3 sons, Enrico and Giuseppe (w/o issue) and Elias, who was the father of 3 sons w/o issue and 5 daughters.
The only daughter who got married was the last but one, Alice, married to the Duke of Calabria, father of Carlos BTS and grand-father of Pedro.
But hasn't the Spanish royal succession been bound by the Castilian law, known as male-preferred primogeniture? Would the line you cited be in accordance with that order?
The semi-Salic law allows a female to succeed only upon the extinction of the dynastic male line. The successor is the female most closely related to the last male -- even though she may be genealogically junior to other females in the house. They would have been passed over in the succession because, at the time, the male line still survived.
According to this scheme, a king who was the last male of his house might die leaving two sons, each of whom is married and with one daughter but no son. The throne would first pass to the elder son, and then upon his death to the younger son. If the younger son died without sons of his own, his daughter would inherit -- since she (and not her cousin) was most closely related to the last male of the house.
But that's not how male-preferred primogeniture works: according to this scheme, the daughters of a prince are behind his sons in the succession -- but ahead of all his younger brothers, as well as all his sisters, and their descendants.
Would Pedro be the heir-general according to this
There are plenty of male-line descendants of Louis XIV if that's what you are asking....?